title: Laravel post request with error "TokenMismatchException"
body: <p>I'm getting this TokenMismatchException with Laravel 4.2. 
  TokenMismatchException will show up when I trying to post request.
  For example Login Page. 
  If I submit that form TokenMismatchException will show up. 
  Is there any way I can validate all post request submitted ?<br>
  Here's the error :</p>
  
  <pre><code>Route::filter('csrf', function()
  {
      if (Session::token() != Input::get('_token'))
      {
          throw new Illuminate\Session\TokenMismatchException;
      }
  });
  </code></pre>
  
  <p>Here's my code :<br>
  <strong>route.php</strong></p>
  
  <pre><code>Route::get('login',array('as' =&gt; 'login', 'uses' =&gt; 'AuthController@getLogin'))-&gt;before('guest');
  Route::post('login',array('uses' =&gt; 'AuthController@postLogin'))-&gt;before('csrf');
  Route::group(array('before' =&gt; 'auth'), function(){
     Route::get('dashboard', array('as' =&gt; 'panel', 'uses' =&gt; 'DashboardController@view_dashboard'));
  });
  </code></pre>
  
  <p><strong>AuthController.php</strong></p>
  
  <pre><code>class AuthController extends Controller {
  public function getLogin(){
      return View::make('users.login');
  }
  
  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(
          'username' =&gt; Input::get('username'),
          'password' =&gt; Input::get('password')
      ), false);
      if(!$auth){
          return Redirect::route('login')-&gt;withErrors(array(
          'Maaf anda bukan sebagai admin..'
          ));
      }
      //return "Success";
      return Redirect::to('dashboard');
  }   
  }
  </code></pre>
  
  <p><strong>DashboardController.php</strong></p>
  
  <pre><code>class DashboardController extends Controller {
  
      public function view_dashboard(){
          return View::make('dashboard.view_home_admin');
      }
  }
  </code></pre>