Please remember to Like/Comment/Subscribe!
Could be a user, could be Tax Rates or chucks of fixed data.
The default sample sucks so hard.
It can't comfortably be run multiple times & doesn't allow for if the data has changed in the DB since seeding.
If I'm lucky they look like this
Maybe you'll also get this, or just a blank file.
They we're made years ago & were to much of a hassle to keep up to date.
First story: Dev given production copy of production DB. Laptop was stolen.
Second story: Preview Environment used real data. It then emailed all the users.
Last Story: Don't make devs jump through hoops to have a decent environment.
Though hasn't been updated in a while
I like this, especially in development environments
Don't use this approach. You might have problems with foreign keys
What if you don't put it in the database at all?
This is fine & my favourite thing to do.
This is one of my favourite bits of code.