Laravel 4 nested resource controllers Route::resource('admin/photo', 'PhotoController'); not working

后端 未结 4 1130
無奈伤痛
無奈伤痛 2021-01-13 16:38

In Larvel 4 I\'m trying to setup nested resource controllers.

in routes.php:

Route::resour         


        
4条回答
  •  耶瑟儿~
    2021-01-13 17:14

    Just simply use a group prefix -> admin. Using nested admin.photo will create you an wrong url like admin/{admin}/photo/{photo}, which you don't want.

提交回复
热议问题