I get the title error when I run command:
php artisan db:seed
My screenshot:
I have no idea where this problem comes from. I was sear
All suggestions that were mentioned here are correct.
However, you must run composer require laravel/legacy-factories
in order for the code to run if you're using Laravel 8.
In case you get an error that says Class 'Database\Factories\ArticleFactory' not found
then make sure you have class ArticleFactory extends Factory
and not ModalFactory.
And make sure you're using HasFactory in the Article Model like here.