Last active
November 23, 2018 08:23
-
-
Save renalpha/35ebd0c080c231d17d4edd810f3e51b5 to your computer and use it in GitHub Desktop.
Active menu state
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!function_exists('activeUrl')) { | |
function activeUrl($url, $class = 'active') | |
{ | |
$trigger = request()->is($url.'*'); | |
if($trigger === true) { | |
return $class; | |
} | |
return; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment