Laravel: How to get the current url as a view helper with parameters
<p>I want to build a link in my view that refers to the same page like that one where its placed on. And I want to be able to give a parameter with.</p>

<p>For example I want to change languages. I have a route like</p>

<pre><code>domain.com/{lang}/xyz
</code></pre>

<p>And in my view I want to do something like</p>

<pre><code>&lt;a href="{{ URL::action(this, ['lang' =&gt; 'en']) }}"&gt;EN&lt;/a&gt;
</code></pre>

<p>So I can easily reload the page but just change the "lang" parameter.</p>

<p>Hopefully its understandable. Please try to help me.</p>

<p>(Another side question: Are there no ressources eg a list of all view helpers in Laravel? where do i know which viewhelpers are available?)</p>