litepie / menu
The Litepie Menu package.
v10.2.2
2023-09-29 13:15 UTC
Requires
- php: ^8.1|^8.2
- dev-master
- 10.x-dev
- v10.2.2
- 7.x-dev
- v7.0.0
- v5.1.6
- v5.1.4
- v5.1.3
- v5.1.2
- v5.1.1
- v5.0.3
- v5.0.2
- v5.0.1
- v5.0.0
- 4.2.x-dev
- 4.2.5
- 4.1.x-dev
- 4.1.4
- 4.0.21
- 4.0.20
- v3.1.13
- v3.1.12
- v3.0.9
- 2.2.x-dev
- 2.1.x-dev
- 2.0.x-dev
- 1.4.x-dev
- 1.3.x-dev
- 1.2.x-dev
- 1.1.x-dev
- 1.0.x-dev
- dev-activities_update
- dev-hotfix/master_package
- dev-hotfix/user_package
This package is auto-updated.
Last update: 2024-12-08 16:33:41 UTC
README
This is a Laravel 5 package that provides menu interface for litepie framework.
Installation
Begin by installing this package through Composer. Edit your project's composer.json
file to require litepie/menu
.
"litepie/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