sciarcinski/laravel-menu

Menu generator package for the Laravel 5.*, Laravel 6.0 framework

4.1 2019-12-16 15:30 UTC

This package is auto-updated.

Last update: 2024-12-17 03:09:42 UTC


README

Installation

  1. Run
composer require sciarcinski/laravel-menu

in console to install this module

  1. 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>