title: laravel middleware applying to specific route
body: <p>I am using larave 5.2</p>
  
  <p>I need to apply middleware route</p>
  
  <p>Controller</p>
  
  <pre><code> public function __construct() {
      $this-&gt;middleware('auth',['only'=&gt;'profile.create']);
  
  }
  </code></pre>
  
  <p>Route</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'web'], function () {
  
  
  Route::auth();
  
  Route::get('/home', 'HomeController@index');
  
  
  
  
  Route::resource('profile','ProfiledetailsController');
  
  
  });
  </code></pre>
  
  <p>When I use below code it works, but middleware applied to all the method of the controller</p>
  
  <pre><code>public function __construct() {
      $this-&gt;middleware('auth');
  
  }
  </code></pre>
  
  <p>route:list</p>
  
  <p><a href="https://i.stack.imgur.com/Kr1fc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Kr1fc.png" alt="route:list"></a><br>
  <sub>(source: <a href="http://huda-enterprises.com/wp-content/uploads/2016/02/Screen-Shot-2016-02-04-at-12.09.42.png" rel="nofollow noreferrer">huda-enterprises.com</a>)</sub>  </p>