title: TokenMismatchException in VerifyCsrfToken - Laravel 5.1
body: <p>I am building a REST API using <strong>Laravel 5.1</strong> and I am getting this error:</p>
  
  <pre><code>TokenMismatchException in VerifyCsrfToken.php line 53:
  </code></pre>
  
  <p>Here is my <strong>routes.php:</strong></p>
  
  <pre><code>Route::controller('city' , 'CityController' );
  </code></pre>
  
  <p><strong>CityController:</strong></p>
  
  <pre><code>class CityController extends Controller
  {  
     public function postLocalities()
    {
      $city = Input::get('cityName');
      $response = $city;
      return $response;
     }
  }
  </code></pre>
  
  <p>Here is the <strong>Stacktrace</strong> of the error when I hit the URL 
   <a href="http://localhost:8000/city/localities?cityName=bangalore">http://localhost:8000/city/localities?cityName=bangalore</a> with POST method.</p>
  
  <pre><code>TokenMismatchException in VerifyCsrfToken.php line 53:
  
  in VerifyCsrfToken.php line 53
  at VerifyCsrfToken-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(VerifyCsrfToken), 'handle'),
  array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in     
  ShareErrorsFromSession.php line 54
  at ShareErrorsFromSession-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(ShareErrorsFromSession), 'handle'),     
  array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in     
  StartSession.php line 62
  at StartSession-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(StartSession), 'handle'),   
  array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in   
  AddQueuedCookiesToResponse.php line 37
  at AddQueuedCookiesToResponse-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(AddQueuedCookiesToResponse), 'handle'),    
  array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in     EncryptCookies.php line 59
  at EncryptCookies-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(EncryptCookies), 'handle'),     
  array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in     
  CheckForMaintenanceMode.php line 42
  at CheckForMaintenanceMode-&gt;handle(object(Request), object(Closure))
  at call_user_func_array(array(object(CheckForMaintenanceMode), 'handle'),   
  array(object(Request), object(Closure))) in Pipeline.php line 124
  at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request)) in Pipeline.php line 103
  at Pipeline-&gt;then(object(Closure)) in Kernel.php line 122
  at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 87
  at Kernel-&gt;handle(object(Request)) in index.php line 54
  at require_once('C:\Users\betaworks02\Documents\gharbhezoBackend\public\index.php') in server.php line 21
  </code></pre>