title: Method not allowed in Index
body: <p>please help with my problem<br>
  I cannot make Ajax call from my main view in laravel. I am receiving <strong>FAIL: Method Not Allowed STATUS: error</strong>, the problem does not occur on other pages. I am including CSRF in header in ajaxsetup:<br><br>
  <code>&lt;meta name="csrf-token" content="{{ csrf_token() }}" /&gt;</code></p>
  
  <p>//SECURE OUR AJAX CALLS:<br>
  <code>var CSRF_TOKEN = $('meta[name="csrf-token"]').attr('content');
  $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': CSRF_TOKEN } });</code></p>
  
  <p><br>and I am using: <br><br>
           <code>$.post("test", function(data){ 
      alert(data); 
  }).fail(function(xhr, status, error) {
      console.log("FAIL: "+error+" STATUS: "+status);
  });</code><br><br>
  Here is routes.php: <br><br>
          <code>Route::post('test', 'TestController@test');</code>
  <br><br>Here is my controller:<br><br>
          <code>public function test(Request $request){ echo 123; die(); }</code>
  <br><br>
  thank you in advance.</p>