title: Handling generated urls in laravel?
body: <p>I'm making a link shortener as part of a school project,</p>
  
  <pre><code>Route::get('{short_url}', array('uses' =&gt; 'UrlController@shortUrlRedirect');
  </code></pre>
  
  <p>This function works fine alone, but as I have other functions such as </p>
  
  <pre><code>Route::post('register', array('uses' =&gt; 'HomeController@doRegister'));
  </code></pre>
  
  <p>whenever example.com/anylink </p>
  
  <p>is now used, it is handled by one function alone.</p>
  
  <p>A working solution I found would be to do something like:</p>
  
  <pre><code>Route::get('url/{short_url}', array('uses' =&gt; 'UrlController@shortUrlRedirect');
  </code></pre>
  
  <p>But of course with a link shortener, the goal is to have as little characters as possible.</p>
  
  <p>Any ideas of a possible way to handle this issue within laravel? </p>