title: I can't use a route::post in Laravel (Error 419 (unknown status))
body: <p>I have a code of Ajax, it works with the type="get" but I want to change the type to "post"</p>
  
  <pre><code>$.ajax({
      url:   '/crear',
      type:  'post',
      cache: 'false',
      contentType: 'false',
      processData: 'false',
      data:  {'nombre':Vnombre,'codigo':Vcodigo,'descripcion':Vdescripcion,'arrayCategorias':arrayCategoriasAux,'arrayColores':arrayColoresAux,'arrayTallas':arrayTallasAux}
  }).done(function(data){
  
      window.location.replace("/almacen/producto");
  });
  </code></pre>
  
  <p>I changed my route in web.php</p>
  
  <pre><code>Route::post('/crear', 'ProductoController@store');
  </code></pre>
  
  <p>But It didn't work, I have the error 419 (unknown status) in my Browser</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;meta name="csrf-token" content="{{ csrf_token() }}"&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="{{asset('js/jquery-3.2.1.js')}}"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $.ajaxSetup({
      headers: {
          'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
      }
  });</code></pre>
  </div>
  </div>
  
  My Controller:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>    public function store(ProductoFormRequest $request)
      {
          if ($request-&gt;ajax()) {
  
              if (!(empty($request-&gt;nombre)) &amp;&amp; !(empty($request-&gt;codigo)) &amp;&amp; !(empty($request-&gt;descripcion))) {
  
                  # code...
                  $producto              = new Producto;
                  $producto-&gt;codigo      = $request-&gt;codigo;
                  $producto-&gt;nombre      = $request-&gt;nombre;
                  $producto-&gt;descripcion = $request-&gt;descripcion;
                  $producto-&gt;stock       = '0';
                   $producto-&gt;estado = '1';
                  $producto-&gt;save();
              }
          }
      }</code></pre>
  </div>
  </div>
  
  My Request</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  
  namespace sistema\Http\Requests;
  
  use Illuminate\Foundation\Http\FormRequest;
  
  class ProductoFormRequest extends FormRequest
  {
      /**
       * Determine if the user is authorized to make this request.
       *
       * @return bool
       */
      public function authorize()
      {
          return true;
      }
  
      /**
       * Get the validation rules that apply to the request.
       *
       * @return array
       */
      public function rules()
      {
          return [
              'codigo'      =&gt; 'required|max:45',
              'nombre'      =&gt; 'required|max:45',
              'descripcion' =&gt; 'max:45',
              'stock'       =&gt; 'max:11',
          ];
      }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Only i want to send Files [] and others arrays [] to my controller, if anyone has a better idea please help me</p>
  
  <p>My Form</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form onsubmit="FuncionGuardar();"  method="Post" enctype="multipart/form-data" class="form-horizontal" id="add_user_form"&gt;
  {{csrf_field()}}
  &lt;div class="row"&gt;
   &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
    &lt;label for="codigo"&gt; Nombre&lt;/label&gt;
  
    &lt;input class="form-control" required value="{{old('nombre')}}" type="text" id="inNombre" name="nombre" placeholder="Nombre"&gt;
   &lt;/div&gt;
   &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
    &lt;label for="codigo"&gt; Codigo&lt;/label&gt;
    &lt;input class="form-control" required value="{{old('codigo')}}" type="text" id="inCodigo" name="codigo" placeholder="Codigo"&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="row"&gt;
   &lt;div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"&gt;
    &lt;label for="codigo"&gt; Descripcion&lt;/label&gt;
    &lt;input class="form-control" required value="{{old('descripcion')}}" type="text" id="inDescripcion" name="descripcion" placeholder="Descripcion"&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="row"&gt;
   &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
   &lt;div class="form-group"&gt;
    &lt;label&gt;Categorias&lt;/label&gt;
      &lt;div class="input-group"&gt;
      &lt;select id="CategoriasSelect" name="idt_categoria" class="form-control" &gt;
       @foreach($categorias as $cat)
                 &lt;option value="{{$cat-&gt;idt_categoria}}"&gt;{{$cat-&gt;nombre}}&lt;/option&gt;
       @endforeach
      &lt;/select&gt;
      &lt;span class="input-group-btn"&gt;
             &lt;a class="btn btn-primary " href="#" role="button" onclick="CrearBotonCategorias()"&gt;Añadir&lt;/a&gt;
           &lt;/span&gt;
     &lt;/div&gt;
    &lt;small class="text-muted" &gt;*Clic en la Categoria para eliminarla&lt;/small&gt;
    &lt;br&gt;
     &lt;div class="alert alert-info" role="alert"&gt;
      &lt;div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups"&gt;
       &lt;div class="btn-group mr-2" role="group" aria-label="First group" id="DivCategorias"&gt;
          &lt;!-- Botones de categorias agregados --&gt;
         &lt;/div&gt;
      &lt;/div&gt;
  
     &lt;/div&gt;
  
  
  
   &lt;/div&gt;
   &lt;/div&gt;
   &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
   &lt;div class="form-group"&gt;
    &lt;label&gt;Colores&lt;/label&gt;
      &lt;div class="input-group"&gt;
      &lt;select id="ColoresSelect" name="idt_color" class="form-control" &gt;
       @foreach($colores as $coloKey)
                 &lt;option   value="{{$coloKey-&gt;idt_color}}" style="background-color:{{$coloKey-&gt;color}};"&gt;
                  {{$coloKey-&gt;nombre}}
                 &lt;/option&gt;
       @endforeach
      &lt;/select&gt;
      &lt;span class="input-group-btn"&gt;
             &lt;a class="btn btn-primary " href="#" role="button" onclick="CrearBotonColores()"&gt;Añadir&lt;/a&gt;
           &lt;/span&gt;
     &lt;/div&gt;
    &lt;small class="text-muted" &gt;*Clic en el Color para eliminarlo&lt;/small&gt;
    &lt;br&gt;
     &lt;div class="alert " role="alert"&gt;
      &lt;div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups"&gt;
         &lt;div class="btn-group mr-2" role="group" aria-label="First group" id="DivColores"&gt;
          &lt;!-- Botones de categorias agregados --&gt;
         &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
  
  
   &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="row"&gt;
    &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
   &lt;div class="form-group"&gt;
    &lt;label&gt;Tallas&lt;/label&gt;
      &lt;div class="input-group"&gt;
      &lt;select id="TallasSelect" name="idt_categoria" class="form-control" &gt;
       @foreach($tallas as $tallaKey)
                 &lt;option value="{{$tallaKey-&gt;idt_talla}}"&gt;{{$tallaKey-&gt;nombre}}&lt;/option&gt;
       @endforeach
      &lt;/select&gt;
      &lt;span class="input-group-btn"&gt;
             &lt;a class="btn btn-primary " href="#" role="button" onclick="CrearBotonTallas()"&gt;Añadir&lt;/a&gt;
           &lt;/span&gt;
     &lt;/div&gt;
     &lt;small class="text-muted" &gt;*Clic en la Talla para eliminarla&lt;/small&gt;
    &lt;br&gt;
     &lt;div class="alert alert-warning" role="alert"&gt;
      &lt;div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups"&gt;
         &lt;div class="btn-group mr-2" role="group" aria-label="First group" id="DivTallas"&gt;
          &lt;!-- Botones de tallas agregados --&gt;
         &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
  
  
   &lt;/div&gt;
   &lt;/div&gt;
    &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
   &lt;div class="form-group"&gt;
    &lt;label&gt;Imagenes&lt;/label&gt;
      &lt;div class="input-group"&gt;
       &lt;input type="file" id="Imagenes" class="filestyle" name="files[]" accept=".jpg, .jpeg, .png" data-btnClass="btn-primary" multiple&gt;
  
      &lt;output id="list"&gt;&lt;/output&gt;
     &lt;/div&gt;
    &lt;br&gt;
     &lt;div class="alert alert-success" role="alert"&gt;
      &lt;div class="btn-toolbar" role="toolbar" aria-label="Toolbar with button groups"&gt;
         &lt;div class="btn-group mr-2" role="group" aria-label="First group" id="DivImagenes"&gt;
          &lt;!-- Botones de categorias agregados --&gt;
         &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
  
  
   &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="col-lg-6 col-md-6 col-sm-6 col-xs-12"&gt;
  &lt;div&gt;
    &lt;div class="form-group"&gt;
     &lt;input type="submit" class="btn btn-primary" value="Submit"&gt;
     &lt;a class="btn btn-danger" href="javascript:window.history.back();" role="button"&gt;Cancelar&lt;/a&gt;
    &lt;/div&gt;
  
   &lt;/div&gt;
  &lt;/div&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>