- Implements
Spatie\Menu\Activatable
, Spatie\Menu\HasUrl
, Spatie\Menu\HasHtmlAttributes
, Spatie\Menu\HasParentAttributes
, Spatie\Menu\Item
public static function to(string $url, string $text)
##getText
public function getText() : string
##getUrl
public function getUrl() : string
##segment
public function segment(int $index)
##prefix
public function prefix(string $prefix)
##render
public function render() : string
##isActive
public function isActive() : bool
##setActive
public function setActive()
##setInactive
public function setInactive()
##setAttribute
public function setAttribute(string $attribute, string $value = '')
##addClass
public function addClass(string $class)
##getParentAttributes
public function getParentAttributes() : array
##setParentAttribute
public function setParentAttribute(string $attribute, string $value = '')
##addParentClass
public function addParentClass(string $class)
- Extends
Spatie\Menu\Link
- Uses
Illuminate\Support\Traits\Macroable
public static function url(string $path, string $text, array $parameters = [], $secure = null)
public static function action(string $action, string $text, array $parameters = [], bool $absolute = true)
public static function route(string $name, string $text, array $parameters = [], $absolute = true, $route = null)