command iseed is not defined error in laravel 5.8
saber13812002 opened this issue · 3 comments
saber13812002 commented
i install it with composer
then error is
Command "iseed" is not defined.
restart
then error is
Command "iseed" is not defined.
then open as administrator then error is
Command "iseed" is not defined.
then run
php artisan config:cache
error is
Command "iseed" is not defined.
aomini commented
have you tried composer dumpautoload
paperscissors commented
can confirm composer dump-autoload does nothing. latest version of Laravel 7 with the same error.
paperscissors commented
Ahh, figured this out. It's because it doesn't confirm to PSR/4 so it's not autoloaded. You need to add IseedServiceProvider::class
to your app.php providers array and then php artisan config:cache
for this to work.