title: How to do restful ajax routes to methods in Laravel 5?
body: <p>So I have a route that looks like this:</p>
  
  <pre><code>Route::any('some/page', ['as' =&gt; 'some-page', 'uses' =&gt; 'SomePageController@index']);
  </code></pre>
  
  <p>However, I also have ajax calls at the same URL (using a request parameter called <em>ajax</em> like: <code>some/page/?ajax=my_action</code>) that I want to hit methods on my controller:</p>
  
  <pre>
  index                   already routes:   'SomePageController@index'
  ajax = my_action        needs to route:   'SomePageController@ajaxMyAction'
  ajax = my_other_action  needs to route:   'SomePageController@ajaxMyOtherAction'
  ajax = blah_blah        needs to route:   'SomePageController@ajaxBlahBlah
  ...
  </pre>
  
  <p>What's the elegant solution to setting this up in my <em>routes.php</em> file?</p>