title: jquery.post() value always gets fail
body: <p>am new to laravel so please consider that.here when i use jquery.post method i always gets result as fails and i dont know why will it be a problem of route or not here is my code please have a look</p>
  
  <pre><code>&lt;script&gt;
  $(".fa-exchange").click(function(){
    var doctor_id=$(this).attr('doctorid');
    $("#doctor_id").val(doctor_id);
    var status=$(this).attr('status');
    $("#status").val(status);
          });
    $("#change-ok").click(function(){
  
              var doctor_id=$("#doctor_id").val();
              var status=$("#status").val();
              var url='{{url('/change-doctor-status/')}}';
  
              $.post(url, {doctor_id:doctor_id,status:status }).done(function (result) {
                 alert("success");
              }).fail(function(result) {
                alert("There was an error. Try again please!");
  
          });
  
          });
  &lt;/script&gt;
  </code></pre>
  
  <p>My controller looks like this </p>
  
  <pre><code>public function change_doctor_status(Request $request)
  {
  
  
     $id = $request['doctor_id'];
     $status = $request['status'];
     if($status==1)
     {
        $query=DB::table('doctors')-&gt;where('id',$id)-&gt;update(['status' =&gt; 0]);
        if($query)
        {
          return true;
        }
  
     }
     else if($status==0)
     {
       $query=DB::table('doctors')-&gt;where('id',$id)-&gt;update(['status' =&gt; 1]);
        if($query)
        {
          return true;
        }
     }
  }
  </code></pre>
  
  <p>i had routed it like this </p>
  
  <pre><code>Route::post('/change-doctor-status', 'Admin\AdminController@change_doctor_status');
  </code></pre>
  
  <p>here when i go for the result am always getting like this alert("There was an error. Try again please!"); which is stored in the fail section</p>