How to get route prefix name from url in laravel 5.3
<p>How can I get the route prefix name dynamically in Laravel 5.3?</p>

<p>For example, here's the URL:  </p>

<blockquote>
  <p><a href="http://localhost/lara/public/admin/login" rel="nofollow noreferrer">http://localhost/lara/public/admin/login</a>  </p>
</blockquote>

<p>And here's the routes file. The route group prefix is <code>admin</code>:</p>

<pre><code>Route::group(['prefix' =&gt; 'admin'], function () {
    Route::get('users', function () {
        // Matches "/admin/users"
    });
});
</code></pre>