Download the PHP package nurmanhabib/laravel-menu without Composer
On this page you can find all versions of the php package nurmanhabib/laravel-menu. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nurmanhabib/laravel-menu
More information about nurmanhabib/laravel-menu
Files in nurmanhabib/laravel-menu
Package laravel-menu
Short Description Make it easy to create navigation menus on Laravel
License MIT
Informations about the package laravel-menu
Welcome to Laravel Menu!
Generate multi navigation menus with unique names, can be displayed anywhere. Custom templating. Support Laravel 5, 6, 7.
Installation
Installation with Composer
Simply execute the following command
Register Service Provider and Facade
Add Nurmanhabib\LaravelMenu\MenuServiceProvider
to the file in config/app.php
in array with key providers
.
Add Nurmanhabib\LaravelMenu\Facades\Menu
to the file in config/app.php
in array with key aliases
.
Quick Example
You can create in the routes files, middleware, or service providers that you custom yourself as needed.
Make From Array
You might be able to make it from another data source (for example: a database) and then process it into array data and turn it into a menu.
Set View
Render to View
You can also call with the menu()
helpers
or
Custom View
To be able to customize the navigation with view
Available default views:
Then you can customize view.name
and receive $menu
variable Nurmanhabib\Navigator\NavCollection
Custom Renderer
API
Nav
NavCollection
Contributing
I apologize if the documentation is still not perfect, if you are willing to contribute to the documentation please do a Pull Request. We also feel happy if we want to contribute to open source.