Laravel: Get URL from routes BY NAME : <p>I'm trying to do something a little different and I couldn't find any way to do it. Maybe my approach is wrong but either way I figured I might find some help here.</p>

<p>I have a Laravel 5 project and you know how you can get the current route name by using:</p>

<pre><code>\Request::route()-&gt;getName();
</code></pre>

<p>So I'm actually looking to do the exact opposite. Maybe not the exact opposite but what I need is to retrieve my route URL based on the name that I gave to that route.
Here is my dream scenario.</p>

<p>my <b>routes.php:</b></p>

<pre><code>Route::any('/hos', "HospitalController@index")-&gt;name("hospital");
</code></pre>

<p>What I <strong>would like to do</strong> in my controller that I have no idea how to or even if is possible:</p>

<pre><code>// I have no idea if this is possible but thats what I'm trying to accomplish
$my_route_url = \Request::route()-&gt;getURLByName("hospital");

echo $my_route_url; // this would echo: "/hos"
</code></pre>

<p>I might be using the wrong approach here so maybe you guys can help me out and shine some light on the issue.</p>

<p>Thanks!</p>
