title: Get parameter passed in URL in Laravel view as variable directly?
body: <p>Right now, if I have a parameter in a URL in one of my Laravel projects, I have to detect the route and grab the parameter:</p>
  
  <pre><code>Route::get('mission/{name}', 'MissionsController@show');
  </code></pre>
  
  <p>Pass the <code>$name</code> parameter as an argument to my controller:</p>
  
  <pre><code>class MissionsController extends BaseController {
    public function show($missionName) {
       ... 
    }
  </code></pre>
  
  <p>}</p>
  
  <p>Then pass it along to the view that is returned in my controller method:</p>
  
  <pre><code>return View::make('missions.mission', array(
      'name' =&gt; $missionName
  ));
  </code></pre>
  
  <p>Before then using the <code>$missionName</code> variable in my view:</p>
  
  <pre><code>&lt;p&gt;{{ $missionName }}&lt;/p&gt;
  </code></pre>
  
  <p>This is quite a roundabout way of doing so. Is there any way I can get the parameter from the URL directly in my view? I've tried accessing the <code>$_GET</code> superglobal, but it is empty. Surely there must be a better way of doing this. </p>
  
  <p>Thoughts?</p>