title: Lumen Enable CSRF Token
body: <p>I know lumen is used to session less API development still i have a situation where i need to enable CSRF token.Session every think works fine but i need to enable csrf token if i add </p>
  
  <pre><code>&lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt; 
  </code></pre>
  
  <p>in form i got error </p>
  
  <blockquote>
    <p>(1/1) ReflectionException Class
    Laravel\Lumen\Http\Middleware\VerifyCsrfToken does not exist</p>
  </blockquote>
  
  <p>In bootstrap/app.php i have uncommented following</p>
  
  <pre><code>$app-&gt;middleware([
        'Illuminate\Cookie\Middleware\EncryptCookies',
       'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
       'Illuminate\Session\Middleware\StartSession',
     'Illuminate\View\Middleware\ShareErrorsFromSession',
      'Laravel\Lumen\Http\Middleware\VerifyCsrfToken',
   ]);
  </code></pre>
  
  <p>even i have enabled </p>
  
  <pre><code>$app-&gt;routeMiddleware([
      'auth' =&gt; App\Http\Middleware\Authenticate::class,
      'csrf' =&gt; 'Laravel\Lumen\Http\Middleware\VerifyCsrfToken'
  ]);
  </code></pre>
  
  <p>if i comment csrf in middleware then  i get following error</p>
  
  <p>Call to undefined function csrf_token() in blade</p>
  
  <p>I am using laravel <code>"laravel/lumen-framework": "5.5.*",</code> </p>
  
  <p>can any one help me how i can enable VerifyCsrfToken in lumen</p>