| Package Data | |
|---|---|
| Maintainer Username: | Spider-Tech |
| Maintainer Contact: | spider_tech@email.com (noob) |
| Package Create Date: | 2017-04-27 |
| Package Last Update: | 2017-07-15 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-05 15:05:42 |
| Package Statistics | |
|---|---|
| Total Downloads: | 7 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 0 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
A quick and easy way to create menus in Laravel 5
composer require noob/simple_menu_laravel
Now, append Laravel Menu service provider to providers array in config/app.php.
<?php
'providers' => [
/*
* Laravel Framework Service Providers...
*/
...
'noob\simple_menu_laravel\SimpleMenuServiceProvider::class',
...
],
?>
At the end of config/app.php add 'SimpleMenu' => 'noob\simple_menu_laravel\SimpleMenuFacade' to the $aliases array:
<?php
'aliases' => [
...
'SimpleMenu' => 'noob\simple_menu_laravel\SimpleMenuFacade',
],
?>
This registers the package with Laravel and creates an alias called SimpleMenu.
Now publish the config files and view files to the appropriate directory
php artisan vendor:publish
Once published two new files are created at config/menu.php
<?php
'dash_board' => [
'title' => 'dashboard',
'url' => '/',
'order' => 2,
'children' => []
],
?>
and another one in the views folder at resources/views/Layouts/menu.blade.php
To do
Yet to do