title: Object of class Illuminate\Routing\Route could not be converted to int
body: <p>I've got route like this:</p>
  
  <pre><code>Route::post('login', [
      'uses' =&gt; 'AuthController@postLogin',
      'before' =&gt; 'guest'
  ]);
  </code></pre>
  
  <p>but it doesn't work and I got only error: 'Object of class Illuminate\Routing\Route could not be converted to int'</p>
  
  <p>I don't know exactly what I'm doing wrong.</p>
  
  <p><strong>My routes:</strong></p>
  
  <pre><code>Route::group(['middleware' =&gt; ['auth, guest']], function () { 
     Route::get('/', array('as' =&gt; 'home', 'uses' =&gt; 'HomeController@getIndex')); 
     Route::get('/login', array('as' =&gt; 'login', 'uses' =&gt; 'AuthController@getLogin')) - 
     Route::post('login', [ 'uses' =&gt; 'AuthController@postLogin', 'before' =&gt; 'guest', ]); 
  }); 
  </code></pre>
  
  <p><strong>AuthController</strong></p>
  
  <pre><code>public function postLogin() { 
  
     $rules = array('username' =&gt; 'required', 'password' =&gt; 'required'); 
     $validator = Validator::make(Input::all(), $rules); 
  
     if ($validator-&gt;fails()) { 
  
        return Redirect::route('login')-&gt;withErrors($validator); 
     } 
  
     $auth = Auth::attempt(array( 'name' =&gt; Input::get('username'), 'password' =&gt; Input::get('password'), ), false); 
  
     if (!$auth) { 
        return Redirect::route('login')-&gt;withErrors(array( 'Invalid credentials were provided', )); 
  
     } 
     return Redirect::route('home'); 
  
  }
  </code></pre>