title: Laravel: MethodNotAllowedHttpException in RouteCollection.php (line 251)
body: <p>Have an ajax request in my page and give me an error</p>
  
  <p>Route file:</p>
  
  <pre><code>Route::post('/record/store','RecordsController@store'). 
  </code></pre>
  
  <p>The <code>sortSBERCS</code> function return array data, the problem occur when this array data is big, if I call <code>dd()</code> before return array in this function it's show array, but when I call <code>dd()</code> after </p>
  
  <pre><code>$all_records = $this-&gt;sortSBERCS($record_data,$sensetive_date,$unique_id); 
  </code></pre>
  
  <p>this row, it's return error <code>MethodNotAllowedHttpException in RouteCollection.php (line 251)</code>.</p>
  
  <p>Store function:</p>
  
  <pre><code>    public function store(Request $request)
      { 
          $record_data = $request-&gt;record_data; 
          $sensetive_date = $request-&gt;sensetive_date; 
          $unique_id= $request-&gt;unique_id; 
          $all_records = $this-&gt;sortSBERCS($record_data,$sensetive_date,$unique_id); 
          return json_encode($all_records); 
      } 
  </code></pre>
  
  <p>Javascript :</p>
  
  <pre><code>data = {};
  data = $('form').serialize();
  data += "&amp;unique_id="+unique_id;
  $.ajax({
      type: 'post',
      url: '/record/store',
      data: data
  });
  </code></pre>
  
  <p>Any help  will be appreciated</p>