awema-pl / module-navigation
Navigation package for Awema layouts
v1.0.4
2021-12-15 17:27 UTC
Requires
- awema-pl/module-localization-helper: dev-master
- illuminate/support: ~5|~6|~7|~8|~9
README
Installation
Via Composer
$ composer require awema-pl/module-navigation.php
The package will automatically register itself.
You can publish the config file with:
php artisan vendor:publish --provider="AwemaPL\Navigation\NavigationServiceProvider" --tag="config"
Menu structure
Default generator gets navs from navigation
config navs
array. Every item have to contain name and link or children.
Additionally it can contain icon.
Read more about nav structure you can in Frame Navigation
Active link binding
By default link is set as active if a current url contains it.
You can add an exact
param to the nav item if you want it active only if the current url equal to nav link.
To exclude nav item from active binding add an 'active' => false
param to it.