May 24, 2016
6
Level 3
How to check if i am on current route or url?
I am trying to restrict a certain content in Laravel.
Problem: I want to hide the navigation if it is on Login page. Inside the conditional statement is a menu that is wrapped using the nav tag.
This is the current code that I use but it is not working..
@if (!Request::url() === 'login')
<nav></nav>
@endif
Any help is appreciated.
Please or to participate in this conversation.