title: Laravel debugging 404 routes
body: <p>Ok, the full <code>routes.php</code> file that I use... I just pasted it here: <a href="http://pastebin.com/kaCP3NwK" rel="nofollow noreferrer">http://pastebin.com/kaCP3NwK</a></p>
  
  <h2>routes.php</h2>
  
  <pre><code>//The route group for all other requests needs to validate admin, model, and add assets
  Route::group(array('before' =&gt; 'validate_admin|validate_model'), function()
  {
      //Model Index
      Route::get('admin/(:any)', array(
          'as' =&gt; 'admin_index',
          'uses' =&gt; 'admin@index'
      ));
  </code></pre>
  
  <p>administrator config:</p>
  
  <pre><code>...
  'models' =&gt; array(
  'news' =&gt; array(
      'title' =&gt; 'News',
      'single' =&gt; 'news',
      'model' =&gt; 'AdminModels\\News',
  ),
  ...
  </code></pre>
  
  <p>links generator:</p>
  
  <pre><code>@foreach (Config::get('administrator.models') as $key =&gt; $model)
      @if (Admin\Libraries\ModelHelper::checkPermission($key))
          &lt;?php $key = is_numeric($key) ? $model : $key; ?&gt;
          &lt;li&gt;
              {{ HTML::link(URL::to_route('admin_index', array($key)), $model['title']) }}
          &lt;/li&gt;
      @endif
  @endforeach
  </code></pre>
  
  <h2>controllers/admin.php</h2>
  
  <pre><code>public function action_index($modelName)
  {
      //first we get the data model
      $model = ModelHelper::getModelInstance($modelName);
  
      $view = View::make("admin.index",
          array(
              "modelName" =&gt; $modelName,
          )
      );
  
      //set the layout content and title
      $this-&gt;layout-&gt;modelName = $modelName;
      $this-&gt;layout-&gt;content = $view;
  }
  </code></pre>
  
  <p>So, when accessing <code>http://example.com/admin/news</code> the <code>news</code> is sent to <code>action_index</code>... but for some reason it doesn't get there and it returns <code>404</code></p>