binomedev/navigator

navigator

dev-master 2021-02-14 17:07 UTC

This package is auto-updated.

Last update: 2024-10-29 05:54:06 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.