Method |
Description |
|
action ( string $action, string $text, mixed $parameters = [], boolean $absolute = true ) |
|
|
actionIf ( boolean $condition, string $action, string $text, array $parameters = [], boolean $absolute = true ) |
|
|
actionIfCan ( string | array $authorization, string $action, string $text, array $parameters = [], boolean $absolute = true ) |
|
|
addIfCan ( string | array $authorization, Spatie\Menu\Item $item ) |
|
|
htmlIfCan ( string | array $authorization, string $html ) : Menu |
|
|
linkIfCan ( string | array $authorization, string $url, string $text ) |
|
|
route ( string $name, string $text, mixed $parameters = [], boolean $absolute = true, Illuminate\Routing\Route | null $route = null ) |
|
|
routeIf ( boolean $condition, string $name, string $text, array $parameters = [], boolean $absolute = true, Illuminate\Routing\Route | null $route = null ) |
|
|
routeIfCan ( string | array $authorization, string $name, string $text, array $parameters = [], boolean $absolute = true, Illuminate\Routing\Route | null $route = null ) |
|
|
setActiveFromRequest ( string $requestRoot = '/' ) |
Set all relevant children active based on the current request's URL. |
|
submenuIfCan ( string | array $authorization, callable | Menu | Spatie\Menu\Item $header, callable | Menu | null $menu = null ) |
|
|
toHtml ( ) : string |
|
|
url ( string $path, string $text, mixed $parameters = [], boolean | null $secure = null ) |
|
|
urlIf ( boolean $condition, string $path, string $text, array $parameters = [], boolean | null $secure = null ) |
|
|
urlIfCan ( string | array $authorization, string $path, string $text, array $parameters = [], boolean | null $secure = null ) |
|
|
view ( string $name, array $data = [] ) |
|
|
viewIf ( $condition, string $name, array $data = null ) |
|
|
viewIfCan ( $authorization, string $name, array $data = null ) |
|
|