public static function getCurrentRoute() { return \Illuminate\Routing\Router::getCurrentRoute(); }
/** * */ function admin_header_active($name) { if (Route::getCurrentRoute()->getName() == $name) { return 'active'; } return ''; }