title: Laravel 4 PHP: Routes Order Issue
body: <p>EDIT:
  I am using Laravel 4 PHP and initially I thought this problem was related to the 'link_to_route' method on a webpage so you can simply link to another webpage that does not contain any dynamic data.</p>
  
  <p>However, I am discovering that the order you list your Routes will ultimately determine if your routes are successfully reached or not.  </p>
  
  <p><strong>Authors2.php (Controller)</strong></p>
  
  <pre><code>class Authors2_Controller extends BaseController {
  
  public $restful = true;
  
  public function contact() {
  
      return View::make('authors2.index')
      -&gt;with('title','Authors and Books')
      -&gt;with('authors2', Author2::orderBy('name')-&gt;get());
  }
  
  public function getnew() {
  
      return View::make('authors2.new')
          -&gt;with('title', 'Add New Author');
  }
  </code></pre>
  
  <p><strong>Routes.php</strong></p>
  
  <pre><code>Route::get('authors2', array('as'=&gt;'authors2', 'uses' =&gt;'Authors2_Controller@contact'));
  
  Route::get('authors2/new', array('as'=&gt;'new_author', 'uses'=&gt;'Authors2_Controller@getnew'));
  </code></pre>
  
  <p><strong>index.blade.php (view)</strong></p>
  
  <pre><code>@extends('layouts.default')
  
  @section('content')
  &lt;h1&gt;Authors2 Home Page &lt;/h1&gt;
  
  &lt;ul&gt;
  @foreach($authors2 as $author2)
      &lt;li&gt;{{ link_to_route('author2', $author2-&gt;name, $parameters = array($author2-&gt;id)) }}&lt;/li&gt;
  @endforeach 
  &lt;/ul&gt;
  
  &lt;p&gt;{{ link_to_route('new_author', 'Add Author') }} &lt;/p&gt;
  
  @endsection
  </code></pre>
  
  <p>When I click on the 'Add Author' link, I get the error 'Trying to get property of non-object' error.</p>
  
  <p><strong>EDIT:</strong>
  So now when I change the order of the routing where if I list the 'authors2/new' route BEFORE the 'authors2' route, the route will actually work:</p>
  
  <pre><code>Route::get('authors2/new', array('as'=&gt;'new_author', 'uses'=&gt;'Authors2_Controller@getnew'));
  Route::get('authors2', array('as'=&gt;'authors2', 'uses' =&gt;'Authors2_Controller@contact'));    
  </code></pre>
  
  <p>Does this have to deal with how Routes are first received and if so, why does this happen? </p>