title: Laravel 5 Routing Issue - Bad Method Call Exception
body: <p>I'm attempting to simply send a 'PUT' request to one of my routes (which is called as a resource in the route file), yet I recieve this traceback as the response.</p>
  
  <pre><code>Whoops, looks like something went wrong.
  1/1 BadMethodCallException in Controller.php line 273: Method [show] does not exist.
  
      in Controller.php line 273
      at Controller-&gt;__call('show', array('1'))
      at AccountControllerV2-&gt;show('1')
      at call_user_func_array(array(object(AccountControllerV2), 'show'), array('account' =&gt; '1')) in Controller.php line 246
      at Controller-&gt;callAction('show', array('account' =&gt; '1')) in ControllerDispatcher.php line 162
      at ControllerDispatcher-&gt;call(object(AccountControllerV2), object(Route), 'show') in ControllerDispatcher.php line 107
      at ControllerDispatcher-&gt;Illuminate\Routing\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
      at Pipeline-&gt;then(object(Closure)) in ControllerDispatcher.php line 108
      at ControllerDispatcher-&gt;callWithinStack(object(AccountControllerV2), object(Route), object(Request), 'show') in ControllerDispatcher.php line 67
      at ControllerDispatcher-&gt;dispatch(object(Route), object(Request), 'App\Http\Controllers\API\V2\AccountControllerV2', 'show') in Route.php line 198
      at Route-&gt;runWithCustomDispatcher(object(Request)) in Route.php line 131
      at Route-&gt;run(object(Request)) in Router.php line 692
      at Router-&gt;Illuminate\Routing\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in Authenticate.php line 47
      at Authenticate-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
      at Pipeline-&gt;then(object(Closure)) in Router.php line 694
      at Router-&gt;runRouteWithinStack(object(Route), object(Request)) in Router.php line 661
      at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 619
      at Router-&gt;dispatch(object(Request)) in Kernel.php line 214
      at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in HttpsProtocol.php line 15
      at HttpsProtocol-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
      at ShareErrorsFromSession-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
      at StartSession-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
      at AddQueuedCookiesToResponse-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
      at EncryptCookies-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
      at CheckForMaintenanceMode-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
      at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
      at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
      at Pipeline-&gt;then(object(Closure)) in Kernel.php line 115
      at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 84
      at Kernel-&gt;handle(object(Request)) in index.php line 53
  </code></pre>
  
  <p>I cannot for the life of me figure out why this is happening.</p>
  
  <p>Here is a code snippet from the Controller itself (which extends BaseController):</p>
  
  <pre><code>/**
       * Update the currently logged User in storage.
       *
       * @return Response 201
       * @return jsonArray account
       * @return string message
       */
  
      public function update($account_id) {
          $input = Input::all();
          $message = 'Account Successfully Updated';
          $user = Auth::User();
  </code></pre>
  
  <p>And here is the Route declaration:</p>
  
  <pre><code>Route::group(array('prefix' =&gt; 'api/v2', 'namespace' =&gt; 'API\V2', 'middleware' =&gt; 'auth'), function()
  {
      Route::resource('challenges', 'ChallengeControllerV2', ['only'=&gt; ['index','store','update','destroy']]);
      Route::resource('groups', 'GroupControllerV2');
      Route::resource('account', 'AccountControllerV2');
  </code></pre>
  
  <p>The call is being made to the correct path.  Any ideas why I'm getting what seems to be an illogical response?  There is no additional middleware/filters attached to the controller than what is shown.</p>