When I try to run php artisan route:cache in lumen project I get the following error,
php artisan route:cache
[invalid argument exception] There is not commend defined in the 'route' namespace.
My route file,
$app->get('/', 'App\Http\Controllers\WebController@index');
Any idea?
This command only exists in Laravel, but not in Lumen. it is not needed as Lumen is optimized for better performance anyway.
Enter php artisan to view all possible commands in Lumen.
php artisan