PHP Class Spatie\Menu\Laravel\View

Inheritance: implements Spatie\Menu\Item, implements Spatie\Menu\Activatable, implements Spatie\Menu\HasParentAttributes, use trait Spatie\Menu\Traits\Activatable, use trait Illuminate\Support\Traits\Macroable, use trait Spatie\Menu\Traits\HasParentAttributes
Datei anzeigen Open project: spatie/laravel-menu Class Usage Examples

Protected Properties

Property Type Description
$active boolean
$data array
$name string
$url string | null

Public Methods

Method Description
__construct ( string $name, array $data = [] )
create ( string $name, array $data = [] ) : static
render ( ) : string

Method Details

__construct() public method

public __construct ( string $name, array $data = [] )
$name string
$data array

create() public static method

public static create ( string $name, array $data = [] ) : static
$name string
$data array
return static

render() public method

public render ( ) : string
return string

Property Details

$active protected_oe property

protected bool $active
return boolean

$data protected_oe property

protected array $data
return array

$name protected_oe property

protected string $name
return string

$url protected_oe property

protected string|null $url
return string | null