A simple package for laravel 5 to manage router path with menu dynamically.
-
Require this package
=>
"Satouch/LaravelMenu": "dev-master"
-
Added repositories
"repositories": [ { "type": "git", "url": "https://github.com/sagormax/LaravelMenu.git" } ],
-
Go to config >> app.php and add those line :
=> On 'providers' section :
Satouch\LaravelMenu\LaravelMenuServiceProvider::class,
=> On 'aliases' section :
'SatouchMenu' => Satouch\LaravelMenu\SatouchMenu::class,
=> On composer run couple of command :
php artisan vendor:publish php artisan migrate
-
Generate or call menu view (Blade):
{!! \SatouchMenu::generate() !!}
-
You can change the mene style, tags and attributes. Here are the templates for customization :
/resources/views/vendor/satouch/laravelmenu/menu-parent.blade.php /resources/views/vendor/satouch/laravelmenu/menu-child.blade.php