ok

Mini Shell

Direktori : /home2/selectio/public_html/fms-worksuite/vendor/froiden/laravel-installer/src/
Upload File :
Current File : /home2/selectio/public_html/fms-worksuite/vendor/froiden/laravel-installer/src/functions.php

<?php

if ( ! function_exists('isActive'))
{
    /**
     * Set the active class to the current opened menu.
     *
     * @param  string|array $route
     * @param  string       $className
     * @return string
     */
    function isActive($route, $className = 'active')
    {
        if (is_array($route)) {
            return in_array(Route::currentRouteName(), $route) ? $className : '';
        }
        if (Route::currentRouteName() == $route) {
            return $className;
        }
        if (strpos(URL::current(), $route)) return $className;
    }
}

Zerion Mini Shell 1.0