@route blade directive for checking current route #40612
-
It will be good for checking current route with @route directive @route('currentroute') active @endroute |
Beta Was this translation helpful? Give feedback.
Answered by
chuckrincon
Jan 25, 2022
Replies: 1 comment
-
Hey there ✋🏻 . Unfortunately there was an attempt to introduce this blade directive, but it was rejected. You could try using the current approach thought: <input class="@if(request()->routeIs('route.name')) active @endif"> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bikify
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there ✋🏻 .
Unfortunately there was an attempt to introduce this blade directive, but it was rejected.
You could try using the current approach thought: