title: How can I define a route differently if parameter is not integer
body: <p>I am using Laravel 5 and working on my local.
  I made a route with a parameter of {id} and another route with a specific name like so :</p>
  
  <pre><code>Route::get('contacts/{id}', 'ContactController@get_contact');
  Route::get('contacts/new', 'ContactController@new_contact');
  </code></pre>
  
  <p>My problem here is that if I try to go at localhost/contacts/new it will automatically access to the get_contact method. I understand that I have made a {id} parameter but what if I want to call get_contact only if my parameter is an integer? If it is not, check if it's "new" and access to new_contact method. Then, if it's not an integer and not "new", error page 404. </p>
  
  <p>How can I do that in Laravel 5?</p>
  
  <p>Thanks for your help!</p>