Created
April 24, 2019 02:03
-
-
Save WyattCast44/5fadb528235577e3b281a3e28cc5fa3f to your computer and use it in GitHub Desktop.
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
<?php | |
if (!function_exists('applyActive')) { | |
function applyActive($route_name) | |
{ | |
return (Route::current()->getName() === $route_name) ? 'active' : ''; | |
} | |
} | |
if (!function_exists('isCurrentRoute')) { | |
function isCurrentRoute($route_name) | |
{ | |
return (Route::current()->getName() === $route_name) ? true : false; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment