title: query string not working in laravel 5
body: <p>In the following code I used <code>{!! URL::route('editCatForm',['id'=&gt;$row-&gt;id]) !!}</code> to go to named route editCatForm with query string <code>?id=5</code> or whatever that comes dynamically on <code>$row-&gt;id</code></p>
  
  <pre><code>@foreach($categories as $row)
      &lt;tr&gt;
          &lt;td&gt;{{ $count++ }}&lt;/td&gt;
          &lt;td&gt;{{ $row-&gt;category_name }}&lt;/td&gt;
          &lt;td&gt;{{ $row-&gt;category_status }}&lt;/td&gt;
          &lt;td&gt;&lt;a href="{!! URL::route('editCatForm',['id'=&gt;$row-&gt;id]) !!}"&gt;edit&lt;/a&gt; / &lt;a href="{!! URL::route('destroyCat',$row-&gt;id) !!}"&gt;delete&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  @endforeach
  </code></pre>
  
  <p>My route for this is</p>
  
  <pre><code>Route::get('editCatForm/{id?}',array('uses'=&gt;'Categories@editCat','as'=&gt;'editCatForm'));
  </code></pre>
  
  <p>but still it shows url like </p>
  
  <pre><code>http://localhost/projects/brainlaratest/editCatForm/2
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>http://localhost/projects/brainlaratest/editCatForm?id=2
  </code></pre>
  
  <p>The route points to function
  </p>
  
  <pre><code>public function editCat($id)
  {
      $catEdit = Category::find(Input::get('id'));
      $categories = $this-&gt;getCat();
      return view('categoriesAddForm',compact('categories','catEdit'));
  }
  </code></pre>
  
  <p>What may be the issue that query string isn't working here?</p>