title: How to fix ? on the link instead of /
body: <p>I want to link my '<code>name</code>' to other page by '<code>/nameID</code>'.</p>
  
  <p>For example: <code>&lt;a href='./2'&gt;number 2&lt;/a&gt;</code></p>
  
  <p>I have tried:</p>
  
  <pre><code>@foreach($adverts as $advert) 
    {{link_to_route('adverts', $advert-&gt;name, array($advert-&gt;id))}} 
  @endforeah
  </code></pre>
  
  <p>It returns me: <code>&lt;a href="http://localhost:8000/?2"&gt;</code>, but I need <code>&lt;a href="http://localhost:8000/2"&gt;</code>.</p>
  
  <p>Where am I wrong?</p>
  
  <p>More details:</p>
  
  <p>models/advert.php</p>
  
  <pre><code>class advert extends Eloquent {
      protected $table = 'adverts';
  }
  </code></pre>
  
  <p>routes.php</p>
  
  <pre><code>Route::get('/', array('as'=&gt;'adverts', 'uses'=&gt;'advertsController@index'));
  Route::get('/{id}', array('as'=&gt;'advert', 'uses'=&gt;'advertsController@info'));
  </code></pre>
  
  <p>controllers/advertsController.php</p>
  
  <pre><code>public function index() {
      return View::make('adverts.index')
                 -&gt;with('adverts', advert::All());
  }
  public function info($id) {
      return View::make('adverts.info')
                 -&gt;with('advert', advert::find($id));
  }
  </code></pre>
  
  <p>When I change the second route to <code>'as'=&gt;'adverts'</code> then it works fine. But I have no idea why it works. If I understand clearly, <code>'as'=&gt;'advert'</code> is only a specific name of the route, isn’t it?</p>