SyntaxFix
Write A Post
Hire A Developer
Questions
There are two ways to do that:
<li{!!(Request::is('your_url')) ? ' class="active"' : '' !!}>
or
<li @if(Request::is('your_url'))class="active"@endif>