first commit
This commit is contained in:
17
app/helpers.php
Executable file
17
app/helpers.php
Executable file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: bglacial
|
||||
* Date: 19/09/18
|
||||
* Time: 22:52
|
||||
*/
|
||||
if (!function_exists('currentRoute')) {
|
||||
function currentRoute(...$routes)
|
||||
{
|
||||
foreach($routes as $route) {
|
||||
if(request()->url() == $route) {
|
||||
return ' active';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user