0
This is the mean problem
I have controllers structures like this 

文件结构

And i am using this syntax to make routes which is worked good for me

网络/路线

And i calling url in this way

{{ route('admin.categories.show', [$category->id]) }}

i got this error 

错误

Any Solution ?? thanks in advance guys
4

2 回答 2

1

对路由进行分组时,可以通过添加标志来命名它们as

Route::group(['prefix' => 'admin', 'as' => 'admin.'], function (){
    Route::resource('categories', 'Admin/CategoryController');
});

现在route('admin.categories.show')应该可以访问了。

于 2018-02-22T13:06:03.700 回答
0

解决方案是

{{ route('categories.show', [$category->id]) }}

跳过管理员谢谢大家。

于 2018-02-22T13:02:29.803 回答