sciarcinski / laravel-menu by sciarcinski

Menu generator package for the Laravel 5 framework
192
2
0
Package Data
Maintainer Username: sciarcinski
Maintainer Contact: slawgos@gmail.com (Sławomir Ciarciński)
Package Create Date: 2016-08-13
Package Last Update: 2019-12-16
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2024-04-23 03:00:14
Package Statistics
Total Downloads: 192
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 2
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

Laravel 5.* Menu

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>