menu
732
0
4
Package Data
Maintainer Username: devfactory
Maintainer Contact: alcindo.dacosta@devfactory.ch (Alcindo Da Costa)
Package Create Date: 2015-08-14
Package Last Update: 2016-05-06
Language: PHP
License: MIT
Last Refreshed: 2024-04-23 03:06:20
Package Statistics
Total Downloads: 732
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 4
Total Forks: 1
Total Open Issues: 0

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'); !!}