sciarcinski / laravel-menu
Menu generator package for the Laravel 5.*, Laravel 6.0 framework
4.1
2019-12-16 15:30 UTC
Requires
- php: >=7.2
README
Installation
- Run
composer require sciarcinski/laravel-menu
in console to install this module
- Open
config/app.php
and:
Service Provider
Sciarcinski\LaravelMenu\MenusServiceProvider::class,
Facade
'Menu' => Sciarcinski\LaravelMenu\Facades\Menu::class,
Getting started
To get started run:
php artisan menu:make TestMenu
This will create a file: App\Menus\TestMenu
To render the menu in your view:
<ul> {!! Menu::get('test_menu')->render() !!} </ul>