title: tokenmismatchexception in compiled.php while submitting form to process using laravel?
body: <p>Sorry in advance if it has already been asked. But no matter what I can never make it works.</p>
  
  <p>i have created one form which stores form data into database,the following is the form i have created which gives me tokenmismatchexception in compiled.php, i tried solving the error.</p>
  
  <pre><code>@extends('main')
  @section('title','| Create Post')
  @endsection
  @section('stylesheet')
  &lt;link href="../css/parsley.css" rel="stylesheet" type="text/css"&gt;
  @endsection
  @section('content')
  &lt;div class="row"&gt;
      &lt;div class="col-md-8 col-md-offset-2"&gt;
          &lt;h1&gt;Create New Post&lt;/h1&gt;
          &lt;hr/&gt;
          &lt;form action="{{ route('posts.store') }}" method="POST" data-parsley-validate&gt;
              &lt;div class="form-group"&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label name="title"&gt;Title:&lt;/label&gt;
                      &lt;input id="title" name="title" class="form-control" data-parsley-required="true" data-parsley-maxlength="255"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label name="body"&gt;Post Body:&lt;/label&gt;
                      &lt;textarea id="body" name="body" class="form-control" data-parsley-required="true"&gt;&lt;/textarea&gt;
                  &lt;/div&gt;
                  &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
                  &lt;input type="submit" class="btn btn-success btn-lg btn-block" value="Save Post"&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;
   @endsection
  
   @section('scripts')
    &lt;script src="../js/parsley.min.js" type="text/javascript"&gt;&lt;/script&gt;
   @endsection
  </code></pre>
  
  <p>what i have tried:</p>
  
  <p>1) tried adding hidden field with value of <code>csrf_token</code></p>
  
  <pre><code>&lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
  </code></pre>