I tried inserting a seed inside a migration file. It did work before on my previous attempts when I’m still using ver. 6.0.

Here’s the migration with seeder code.

Post image


As you can see, I’ve included the AppModelsUser file in order to use the class ‘user’.

But as I run the ‘php artisan migrate:fresh’ command, I get this error:

Post image


I wonder what I’m doing wrong here.

Source link

Write A Comment