src/Item.php
public function activeClass(string $className = ''): string
    {
        if (! $className) {
            $className = config('menus.active_class_name');
        }

        return $this->isActive() ? $className : '';
    }
public function activeClass(string $className = ''): string
    {
        if (! $className) {
            $className = config('menus.active_class_name');
        }

        return $this->isActive() ? $className : '';
    }
public function activeClass ( string $ className = '' ) : string { if ( ! $ className ) { $ className = config ( 'menus.active_class_name' ) ; } return $ this -> isActive ( ) ? $ className : '' ; }
Return active class name.
Return active class name .