title: Laravel 5: Fetch ajax data in route and pass to controller
body: <p>I'm using Laravel 5 and want to make ajax call to a controller with some data:  </p>
  
  <pre><code> $.ajax({
      url : "/getOrgById",
      data : JSON.stringify({id:1})
  })
  </code></pre>
  
  <p>The <code>routes.php</code> has:  </p>
  
  <pre><code>Route::get('/getOrgById', 'HomeController@getOrgById');
  </code></pre>
  
  <p><code>HomeController.php</code>:</p>
  
  <pre><code>public function getOrgById($data) {
     //code here fails with message 'Missing argument 1 for HomeController::getOrgById()
  }
  </code></pre>
  
  <p>How can I pass the data from ajax to route and then to controller?</p>