{"_id":"563c2218ac77910d00279fe7","project":"563b65bd9e3f2225009fd2bc","parentDoc":null,"user":"563b65409e3f2225009fd2b9","version":{"_id":"563b65bd9e3f2225009fd2bf","project":"563b65bd9e3f2225009fd2bc","__v":4,"createdAt":"2015-11-05T14:20:45.639Z","releaseDate":"2015-11-05T14:20:45.639Z","categories":["563b65be9e3f2225009fd2c0","563b6b25e951f60d000b4513","563c239e260dde0d00c5e890","563c2440260dde0d00c5e891"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"4.0.0","version":"4.0"},"category":{"_id":"563b6b25e951f60d000b4513","version":"563b65bd9e3f2225009fd2bf","__v":6,"pages":["563c21fd19ae7b0d0050d45b","563c220c7539dd0d00dbee87","563c2218ac77910d00279fe7","563c2233d8f2d20d00448b4f","563c2376913e650d00b65dbd","563c907319ae7b0d0050d528"],"project":"563b65bd9e3f2225009fd2bc","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-11-05T14:43:49.565Z","from_sync":false,"order":1,"slug":"the-basics","title":"The Basics"},"__v":2,"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-06T03:44:24.279Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"This is a Laravel 5 package that provides menu interface for lavalite framework.\n\n## Installation\n\nBegin by installing this package through Composer. Edit your project's `composer.json` file to require `lavalite/menu`.\n\n    \"lavalite/menu\": \"dev-master\"\n\nNext, update Composer from the Terminal:\n\n    composer update\n\nOnce 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.\n\n```php\n'Lavalite\\Menu\\MenuServiceProvider'\n```\n\nAnd also add it to alias\n\n```php\n'Menu'  => 'Lavalite\\Menu\\Facades\\Menu',\n```\n\nUse the below commands for publishing\n\nMigration and seeds\n\n    php artisan vendor:publish --provider=\"Lavalite\\Menu\\Providers\\MenuServiceProvider\" --tag=\"migrate\"\n    php artisan vendor:publish --provider=\"Lavalite\\Menu\\Providers\\MenuServiceProvider\" --tag=\"seeds\"\n\nConfiguration\n\n    php artisan vendor:publish --provider=\"Lavalite\\Menu\\Providers\\MenuServiceProvider\" --tag=\"config\"\n    \nViews\n\n    php artisan vendor:publish --provider=\"Lavalite\\Menu\\Providers\\MenuServiceProvider\" --tag=\"view-menu\"\n    php artisan vendor:publish --provider=\"Lavalite\\Menu\\Providers\\MenuServiceProvider\" --tag=\"view-admin\"\n\n    \nYou are done!\n\n## Usage\n\nOn the view page just call\n```php\n{{Menu::menu('key-of-the-root-menu')}}\n```\n\nMenu Configuration","excerpt":"Manages Menu for the project","slug":"menu","type":"basic","title":"Menu"}

Menu

Manages Menu for the project

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. ```php 'Lavalite\Menu\MenuServiceProvider' ``` And also add it to alias ```php '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 ```php {{Menu::menu('key-of-the-root-menu')}} ``` Menu Configuration