Blade Redirection on @elseif laravel
<p>is it possible to redirect a user if function returns false?</p>

<p>e.g</p>

<pre><code>@if(accessFunction() == True)
  &lt;h1&gt;You have access, {{ Auth::user()-&gt;username }}&lt;/h1&gt;
@elseif
  {{ Redirect('/') }}
@endif
</code></pre>