lavalite/menu

This package is abandoned and no longer maintained. No replacement package was suggested.

Menu package for Lavalite framework

4.0.0 2015-12-15 12:43 UTC

This package is not auto-updated.

Last update: 2016-05-20 11:40:36 UTC


README

This is a Laravel 5 package that provides menu interface for lavalite framework.

Begin by installing this package through Composer. Edit your project's composer.json file to require lavalite/menu.

"lavalite/menu": "dev-master"

Next, update Composer from the Terminal:

composer update

Once this operation completes, the final step is to add the service provider and menu alias. Open app/config/app.php, and add a new item to the providers array.

'Lavalite\Menu\MenuServiceProvider'

And also add it to alias

'Menu'  => 'Lavalite\Menu\Facades\Menu',

Use the below commands for publishing

Migration and seeds

php artisan vendor:publish --provider="Lavalite\Menu\Providers\MenuServiceProvider" --tag="migrate"
php artisan vendor:publish --provider="Lavalite\Menu\Providers\MenuServiceProvider" --tag="seeds"

Configuration

php artisan vendor:publish --provider="Lavalite\Menu\Providers\MenuServiceProvider" --tag="config"

Views

php artisan vendor:publish --provider="Lavalite\Menu\Providers\MenuServiceProvider" --tag="view-menu"
php artisan vendor:publish --provider="Lavalite\Menu\Providers\MenuServiceProvider" --tag="view-admin"

You are done!

Usage

On the view page just call

{{Menu::menu('key-of-the-root-menu')}}

Menu Configuration