PHP Class Spatie\Menu\Laravel\Link

Inheritance: extends Spatie\Menu\Link, use trait Illuminate\Support\Traits\Macroable
Exibir arquivo Open project: spatie/laravel-menu Class Usage Examples

Public Methods

Method Description
toAction ( string $action, string $text, mixed $parameters = [], boolean $absolute = true ) : static
toRoute ( string $name, string $text, mixed $parameters = [], boolean $absolute = true, Illuminate\Routing\Route | null $route = null ) : static
toUrl ( string $path, string $text, mixed $parameters = [], boolean | null $secure = null ) : static

Method Details

toAction() public static method

public static toAction ( string $action, string $text, mixed $parameters = [], boolean $absolute = true ) : static
$action string
$text string
$parameters mixed
$absolute boolean
return static

toRoute() public static method

public static toRoute ( string $name, string $text, mixed $parameters = [], boolean $absolute = true, Illuminate\Routing\Route | null $route = null ) : static
$name string
$text string
$parameters mixed
$absolute boolean
$route Illuminate\Routing\Route | null
return static

toUrl() public static method

public static toUrl ( string $path, string $text, mixed $parameters = [], boolean | null $secure = null ) : static
$path string
$text string
$parameters mixed
$secure boolean | null
return static