orangehill / iseed

Laravel Inverse Seed Generator
BSD 2-Clause "Simplified" License
2.77k stars 384 forks source link

command iseed is not defined error in laravel 5.8 #154

Open saber13812002 opened 4 years ago

saber13812002 commented 4 years ago

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 4 years ago

have you tried composer dumpautoload

paperscissors commented 4 years ago

can confirm composer dump-autoload does nothing. latest version of Laravel 7 with the same error.

paperscissors commented 4 years ago

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.