Get last part of current URL in Laravel 5 using Blade
<p>How to get the last part of the current URL without the <code>/</code> sign, dynamically?</p>

<p>For example:  </p>

<p>In <code>www.news.com/foo/bar</code>   get <code>bar</code>.</p>

<p>In <code>www.news.com/foo/bar/fun</code> get <code>fun</code>.</p>

<p>Where to put the function or how to implement this in the current view?</p>