title: Getting the lastest slug from url in Laravel
body: <p>This is my route:</p>
  
  <pre><code>Route::get('{slug?}/{slug2?}/{slug3?}', 'PageController@show');
  </code></pre>
  
  <p>This is how I got the slug value in my service provider:</p>
  
  <pre><code>$this-&gt;app-&gt;request-&gt;route('slug2')
  </code></pre>
  
  <p>Somethings my url looks like <code>base_url/slug</code> or <code>base_url/slug/slug2</code> or <code>base_url/slug/slug2/slug3</code>. I am looking for a laravel way to get the lastest slug always no matter how my url looks like. Is there a way to do that ? </p>
  
  <p>Thx</p>