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

后端 未结 4 1084
無奈伤痛
無奈伤痛 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:01

    In actual fact you should replace the "admin/photo" with "admin.photo" for laravel to set-up a resource for photo being a sub of admin.

    Check this https://tutsplus.com/lesson/nested-resources/

提交回复
热议问题