New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

devfactory/menu

menu
734
Install
composer require devfactory/menu
Latest Version:1.1.0
PHP:>=5.4.0
Laravel:5
License:MIT
Last Updated:May 6, 2016
Links: GitHub  ·  Packagist
Maintainer: devfactory

Laravel Laravel License

#Menu

This is a package for the Laravel framework, it allows for a specified set of menu to be overridden in the database by the user of the site

Installation

Laravel 5

Using Composer, edit your composer.json file to require devfactory/media.

"require": {
  "devfactory/menu": "1.0.*"
}

Then from the terminal run

composer update

Then in your app/config/app.php file register the service provider:

'Devfactory\Menu\MenuServiceProvider',

and the Facade:

'MenuAdmin' => 'Devfactory\Menu\Facades\Menu',

From within the the laravel folder of your project, run:

php artisan vendor:publish

Run the migration to create the DB table:

php artisan migrate

You have to add the Controller to your routes.php, so that you can set your own url/filters.

Route::group(array('before' => 'admin-auth'), function() {
  Route::controller('menu', '\Devfactory\Menu\Controllers\MenuController');
});

To show the menu

  {!! MenuAdmin::show('nav menu'); !!}

Related Packages

vespakoen/menu

Managing menus the easy way.

87,128 267
smorken/menu

Menu builder helper

5,378
sciarcinski/laravel-menu

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

195 2
fivesqrd/fluent-laravel

A Laravel 5 service provider for including the Fluent PHP library.

3,198 0

Version History

Version Released PHP Laravel License
1.1.0 >=5.4.0 ~5.0 MIT
1.0.5 >=5.4.0 ~5.0 MIT
1.0.4 >=5.4.0 ~5.0 MIT
1.0.3 >=5.4.0 ~5.0 MIT
1.0.2 >=5.4.0 ~5.0 MIT