aboutsam's avatar

Store fix test data ?

Hello guys,

is it possible to create fixed test data for my laravel installation which i can also migrate via php artisan?

I know the factory files but these files create dummy data.

I want to save 2 users as default .. because when i refresh the database, i have to manuell insert them again. Is there any standard process in laravel?

Thanks a lot!

0 likes
1 reply
xmarks's avatar

You have to use Database Seeders

Then you run: php artisan migrate:refresh --seed which will populate your data after the migration.

Please or to participate in this conversation.