Hi,
I was wondering - I know that migrations are used for altering database table structure, and seeders are used to seed tables with rows.
In the case of what happens when you need to add categorical data - data that must be added as a one-time thing, like "document types", or "tax values" or "names of cities", where the application needs this starting data to run, but it is not a user-created record... is it still a good idea to place this in the seeder?
I've never used a seeder in a work-related application, but I hear a seeder is to seed tables generally with fake data especially with factories. But if I am interested in not seeding random data, but specific records that will be present for the lifetime of the application, should I still use a seeder?
To accomplish this task currently - I always insert categorical records through an imported php script in php artisan tinker. In it, I call model::create(data) for every record that i need via an imported function.
If seeders are indeed the best place, how does one run just the single seeder created? If I make more seeders, how can I prevent the categorical data from being deleted and remade (hence, breaking the id's and their relationships)?