I have a certain data that must be in table in order for my app to work, otherwise i get an error message.
For example if YOU or anyone else pulled my app from github and if you run php artisan migrate and then try to test the app you would get an error: data doesn't exist or something like that. and it's because there is no data in table.
So ideal solution would be after running:
php artisan migrate
that you also get this needed data in that table.
This should be done somehow with the seeder but i don't know how. Can anyone help and give me an example?
How to make a seed for this data that should go into car_company table:
id car_company
1 Volkswagen
2 Mercedes
3 Audi
4 Porsche
there are 4 rows and i want to insert them after running
php artisan db:seed