You could consider creating a console command
Seeding with real data?
I'm a little bit confused about how I should go about seeding my database with "real" data. IE data that will actually be used in a production environment. For instance, let's say whenever the site is created I also want to create 5 admin accounts.
You would think seeds are the right answer, but I've seen a lot of people say that seeds should be exclusively used for fake test data. The alternative seems to be putting "real" data into the database through migrations.
But that doesn't seem to scale well. Let's say you need to change one of the emails of the admins you are creating? You can't really go back and just change that one migration. You would risk losing data that has changed over time. Otherwise you need to create an entire migration for that simple thing, which seems crazy.
@imJohnBon: We use seeds for production data. For example to create the default roles and permissions. Seems like it is exactly what it is meant for. And tbh, who cares if some people say it is not for this as long as it does exactly what you need?
Please or to participate in this conversation.