Faker is great and I am using it. However the data you get out is a little limited. What is I want something it does not provide out if the box, like products ? I had a little look at the github docs but creating custom data seemed a little involved, and perhaps not worth doing if all I want is say 20 of each type.
Does anyone have some snappy "easy to follow" work flow for creating custom data ?
Usually combination of words/sentences and numbers can provide everything I need when it comes to not included stuff. Could you be more specific with what you want to create and maybe add an example?
Of course I can make it up, I've always done it that way when I was just using PHPMyAdmin, however, now that I am using migrations, every time I do a refresh I loose all my seed data.
Yes I looked at the docs, and as I said in my first post, it is a bit questionable if it is worth jumping through those hoops for 20 or so entries.
If there is no easy way of doing it, I will just go back to manual.
Well, that depends. But it's always been worth it to me. It's incredibly comfortable to have seeders ready (with products, relationships, users) when you need to refresh your DB.
Actually you don't need to do anything like that if you don't want to. Just create your instance $faker = Faker\Factory::create(); and you're good to go.
Unless you want to have some sample data with actual products, that's fine. You can always add some arrays for an insert if you wanted to keep real data
@vincej you wrote: "however, now that I am using migrations, every time I do a refresh I loose all my seed data."
just to make sure you know that if you register your seeds in the DatabaseSeeder class you can trigger all seeds upon a migration refresh: php artian migrate:refresh --seed?