binomedev / navigator
navigator
Fund package maintenance!
binomendev
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8.0
- spatie/laravel-package-tools: ^1.1
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2024-10-29 05:54:06 UTC
README
A utility package for creating various navigation menus such as navbar, dropdowns, pills, tabs and others.
Installation
You can install the package via composer:
composer require binomendev/navigator
You can publish and run the migrations with:
php artisan vendor:publish --provider="Binomendev\Navigator\NavigatorServiceProvider" --tag="navigator-migrations" php artisan migrate
You can publish the config file with:
php artisan vendor:publish --provider="Binomendev\Navigator\NavigatorServiceProvider" --tag="navigator-config"
This is the contents of the published config file:
return [ // ];
Usage
To create a new menu you can use the facade.
\Binomendev\Navigator\NavigatorFacade::menu('main', [ \Binomedev\Navigator\NavItem::make(__('Home'), '/', 'fa fa-house') ]);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.