devfactory/menu is a Laravel package for menu .
It currently has 0 GitHub stars and 734 downloads on Packagist (latest version 1.1.0).
Install it with composer require devfactory/menu.
Discover more Laravel packages by devfactory
or browse all Laravel packages to compare alternatives.
Last updated
#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
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'); !!}