shihabudheen's avatar

Lumen Route Caching is not working

When I am running php artisan route:cache in cmd ,I am getting error that there is not commands defined in the route name space.

My route file contains following code,

$app->get('/', ['namespace' => 'API','as' => 'dashboard', 'uses' => 'WebController@index']);

Any idea to resolve?

0 likes
2 replies
Ozan's avatar

It means that there is no such artisan command called route:cache. The error says that there is no :cache under the namespace route which actually refer to route:cache.

PS: Lumen doesn't need caching, it's so fast. That's the main point of being a micro framework.

1 like
priti's avatar

I think there is no pgp artisan command for route

$php artisan route:list [Symfony\Component\Console\Exception\CommandNotFoundException] There are no commands defined in the "route" namespace.

Not sure how to debug the url if something goes wrong !

1 like

Please or to participate in this conversation.