title: 405 (Method Not Allowed) laravel 5 for ajax
body: <p>In my website page I am displaying some vendor details with search filter and review. I am implementing review using ajax which works fine.<br>
  But when I use search filter to display vendors city wise I use different url but display result on same page at that time review ajax doesn't work.   </p>
  
  <p>It shows <strong><em>405 (Method Not Allowed)</em></strong> exception</p>
  
  <p><strong><em>Step1:</em></strong> For display vendor details I used following url   </p>
  
  <pre><code>Route::get('/packersearch', 'User@getPackers');  
  </code></pre>
  
  <p>on <code>packers.blade.php</code>. At this moment my ajax for review works fine but when I insert city name in search filter it uses following url   </p>
  
  <pre><code>Route::post('/moverssearch','User@moverSearch');
  </code></pre>
  
  <p>which dislays result on same <code>packers.blade.php</code>. After using search result when I tries use same ajax review it shows <strong>MethodNotAllowedHttpException</strong>.</p>
  
  <p>Why I am getting this error.Please Help me</p>
  
  <p>my ajax </p>
  
  <pre><code> $("#rating").click(function(){        
      var rate = $("input[type='radio'].rate:checked").val();        
      var title=$("#title").val();
  
      var review=$("#review").val();        
      var token=$("#token").val();
      var id=$("#id").val();        
  
     var dataString ="rate="+rate+"&amp;title="+title+"&amp;review="+review+"&amp;id="+id;  
  
      $.ajax({                                  
  
        url: "vendorReview",                 
       type: "POST",
       beforeSend: function(xhr){xhr.setRequestHeader('X-CSRF-TOKEN',    $("#token").attr('content'));}, 
        data:dataString,         
  
        success:function(res){
          console.log(res);
  
          if(res)                        
          {
            $('#msg').modal('show');
  
          }
  
        }//success
  
      });//ajax
  
    });//click function
  </code></pre>