I do my seeders with firstOrCreate. So I can run the seeder as many times as I want
Is it a bad idea to populate a table with default data from migration files?
I have a package that creates some tables, but for the package to work correctly it needs some default data. If I follow the documentation of Laravel I should go ahead and use the Seeder functionality. But the documentation states that it is used to seed your tables with test data, which in my case doesn't apply. I know I can just go ahead and populate the tables with Seeds anyway, but if someone runs the seeder twice the data also gets inserted twice.
A solution to this problem could be to just populate the tables with default data from a migration file. Which is guaranteed to run just once. So I was wondering if using that method is a bad idea and if so, why?
Please or to participate in this conversation.