流明路由缓存不起作用

时间:2015-04-25 06:02:52

标签: php laravel routing laravel-5 lumen

当我尝试在流明项目中运行php artisan route:cache时,我收到以下错误,

[invalid argument exception]
There is not commend defined in the 'route' namespace.

我的路线档案是,

 $app->get('/', 'App\Http\Controllers\WebController@index');

有什么想法吗?

1 个答案:

答案 0 :(得分:2)

此命令仅存在于Laravel中,而在Lumen中则不存在。因为流明无论如何都要针对最佳性能进行优化,因此不需要它。

键入body > header > d#container > span[some-attr="something] > a.click以查看流明中的所有可能命令。

相关问题