Lumen route caching not working
When I try to run php artisan route:cache
in lumen project I get the following error,
[invalid argument exception]
There is not commend defined in the 'route' namespace.
My route file,
$app->get('/', 'App\Http\Controllers\WebController@index');
Any idea?
+3
Muhammed shihab
source
to share
1 answer
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.
+1
Margus Pala
source
to share