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
答案 0 :(得分:1)
对路线进行分组时,可以通过添加标记as
:
Route::group(['prefix' => 'admin', 'as' => 'admin.'], function (){
Route::resource('categories', 'Admin/CategoryController');
});
现在应该可以访问route('admin.categories.show')
。
答案 1 :(得分:0)
解决方案是
{{route('categories.show',[$ category-> id])}}
跳过管理员感谢每一个人。