Laravel 5.6 路线
Laravel 5.6 Route
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
解决方案是
{{ route('categories.show', [$category->id]) }}
跳过管理员谢谢大家。
分组路由时,可以通过添加标志 as
:
为它们命名空间
Route::group(['prefix' => 'admin', 'as' => 'admin.'], function (){
Route::resource('categories', 'Admin/CategoryController');
});
现在 route('admin.categories.show')
应该可以访问了。
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
解决方案是
{{ route('categories.show', [$category->id]) }}
跳过管理员谢谢大家。
分组路由时,可以通过添加标志 as
:
Route::group(['prefix' => 'admin', 'as' => 'admin.'], function (){
Route::resource('categories', 'Admin/CategoryController');
});
现在 route('admin.categories.show')
应该可以访问了。