This is the documentation for
v2 but the latest version is
You can switch versions in the menu on the left/at the top.
Check your current version with the following command:
composer show spatie/menu
The items provided in the
laravel-menu package have some added convenience methods linked to Laravel's url generator.
Link class has three added factory methods,
toAction. The methods require the same parameters as their Laravel helper function counterparts, with a
$text parameter squished between as the second one.
Menu class has convenience methods for all of the above link factory methods.