SandipPrasad's avatar

LUMEN Error : In Container.php line 824: Class App/Console/Commands/KeyGenerateCommand does not exist

Though Lumen does not support Key:generate command from php artisan, so I did it manually as follows :

1> Added '\App\Console\Commands\KeyGenerateCommand' within protected $commands array in app/console/Kernel.php

2> kept the KeyGenerateCommand.php file in app/console/commands-folder

3> Added $app->configure('app'); in bootstrap/app.php

When you follow the above steps the key:generate command show up in php artisan list which I already implemented in another lumen project. Since I am not a Lumen expert henceforth I am unable to detect the error for . Hence I seek someones help in this regard on urgent basis.

Thanks

0 likes
2 replies
munazzil's avatar

Have you try with

Composer update

and after try with

php artisan key:generate
okusax's avatar

remember to run:

composer dump-autoload

after the addition of a class to the project.

Please or to participate in this conversation.