2017 © Pedro Peláez
 

library menu

menu

image

devfactory/menu

menu

  • Friday, May 6, 2016
  • by devfactory
  • Repository
  • 3 Watchers
  • 0 Stars
  • 699 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Laravel Laravel License, (*1)

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, (*2)

Installation

Laravel 5

Using Composer, edit your composer.json file to require devfactory/media., (*3)

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

Then from the terminal run, (*4)

composer update

Then in your app/config/app.php file register the service provider:, (*5)

'Devfactory\Menu\MenuServiceProvider',

and the Facade:, (*6)

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

From within the the laravel folder of your project, run:, (*7)

php artisan vendor:publish

Run the migration to create the DB table:, (*8)

php artisan migrate

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

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

To show the menu, (*10)

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

The Versions

06/05 2016