In Larvel 4, I am trying to install nested resource controllers.
in routes.php :
Route::resource('admin/photo', 'Controllers\\Admin\\PhotoController');
in application \ controllers \ Admin \ PhotoController.php :
<?php namespace Controllers\Admin; use Illuminate\Routing\Controllers\Controller; class PhotoController extends Controller { public function index() { return 'index'; } public function create() {
(> (/ admin / photo GET),
create (/ admin / photo / create) and
save (/ admin / photo POST) actions work fine ... but donβt
edit and
show , I just get page status not 404.
it will work if i drop the admin root path.
Can someone tell me how I configure the Route :: resource controller to work with a nested path like admin / photo
laravel laravel-4
Arni gudjonsson
source share