Skip to content
/ Menu Public
forked from Litepie/Menu

[READ ONLY] Subtree split of the Litepie Menu component (see lavalite/framework)

License

Notifications You must be signed in to change notification settings

gflauder/Menu

 
 

Repository files navigation

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

Installation

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.

'Litepie\Menu\MenuServiceProvider'

And also add it to alias

'Menu'  => 'Litepie\Menu\Facades\Menu',

Use the below commands for publishing

Migration and seeds

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

Configuration

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

Views

php artisan vendor:publish --provider="Litepie\Menu\Providers\MenuServiceProvider" --tag="view-menu"
php artisan vendor:publish --provider="Litepie\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

About

[READ ONLY] Subtree split of the Litepie Menu component (see lavalite/framework)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 61.3%
  • HTML 38.7%