title: BadMethodCallException: Method Illuminate\Routing\Route::withoutMiddleware does not exist
body: <p>Does anyone have any idea about this exception?</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'auth:api'], function() {
  
  //Blog routes
  Route::get('blog', 'ApiControllers\ApiBlogController@index')-&gt;name('blog.index')-&gt;withoutMiddleware('auth:api');
  //User routes
  Route::get('user', 'ApiControllers\ApiUserController@index')-&gt;name('user.index');
  Route::delete('user/{user}', 'ApiControllers\ApiUserController@destroy')-&gt;name('user.destroy');
  Route::get('user/{user}', 'ApiControllers\ApiUserController@show')-&gt;name('user.show');
  Route::put('user/{user}', 'ApiControllers\ApiUserController@update')-&gt;name('user.update');
  });
  </code></pre>
  
  <h1>Exception</h1>
  
  <pre><code>BadMethodCallException: Method Illuminate\Routing\Route::withoutMiddleware does not exist. in file 
  </code></pre>