title: Laravel 4 nested resource controllers Route::resource('admin/photo', 'PhotoController'); not working
body: <p>In Larvel 4 I'm trying to setup nested resource controllers.</p>
  
  <p>in <strong>routes.php</strong>:</p>
  
  
  
  <pre class="lang-php prettyprint-override"><code>Route::resource('admin/photo', 'Controllers\\Admin\\PhotoController');
  </code></pre>
  
  <p>in <strong>app\controllers\Admin\PhotoController.php</strong>:</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php namespace Controllers\Admin;
  
  use Illuminate\Routing\Controllers\Controller;
  
  class PhotoController extends Controller {
  
      /**
       * Display a listing of the resource.
       *
       * @return Response
       */
      public function index()
      {
          return 'index';
      }
  
      /**
       * Show the form for creating a new resource.
       *
       * @return Response
       */
      public function create()
      {
          //
      }
  
      /**
       * Store a newly created resource in storage.
       *
       * @return Response
       */
      public function store()
      {
          //
      }
  
      /**
       * Display the specified resource.
       *
       * @return Response
       */
      public function show($id)
      {
          return $id;
      }
  
      /**
       * Show the form for editing the specified resource.
       *
       * @return Response
       */
      public function edit($id)
      {
          return "edit $id";
      }
  
      /**
       * Update the specified resource in storage.
       *
       * @return Response
       */
      public function update($id)
      {
          //
      }
  
      /**
       * Remove the specified resource from storage.
       *
       * @return Response
       */
      public function destroy($id)
      {
          //
      }
  
  }
  </code></pre>
  
  <p><strong>index</strong> (/admin/photo GET), <strong>create</strong> (/admin/photo/create) and <strong>store</strong> (/admin/photo POST) actions work fine... but not <strong>edit</strong> and <strong>show</strong>, I just get a page not found 404 status.</p>
  
  <p>it will work though if I drop the admin root path.</p>
  
  <p>Can anyone tell me how I setup the Route::resource controller to work with a nested path like admin/photo</p>