Package Data | |
---|---|
Maintainer Username: | morningtrain |
Maintainer Contact: | bb@morningtrain.dk (Bjarne) |
Package Create Date: | 2015-12-19 |
Package Last Update: | 2016-01-19 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:00:04 |
Package Statistics | |
---|---|
Total Downloads: | 46 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 4 |
Total Forks: | 0 |
Total Open Issues: | 0 |
Via Composer
$ composer require morningtrain/menumanager
Add this service provider to your config/app.php file.
morningtrain\menumanager\menumanagerServiceProvider::class,
Menu::addItem('admin', ['routealias' => 'someroute', 'title' => 'Menu item title']);
Menu::addItem('admin', ['as' => 'unique_name', 'routealias' => 'someroute', 'title' => 'Indhold', 'children' => [
['routealias' => 'someroute', 'title' => 'Menu item 1'],
['routealias' => 'someroute', 'title' => 'Menu item 2'],
['routealias' => 'someroute', 'title' => 'Menu item 3'],
['routealias' => 'someroute', 'title' => 'Menu item 4'],
['routealias' => 'someroute', 'title' => 'Menu item 5'],
]]);
Menu::addItem('admin', ['as' => 'unique_name', 'routealias' => 'someroute', 'title' => 'Indhold', 'children' => [
['routealias' => 'someroute', 'title' => 'Menu item 1'],
['routealias' => 'someroute', 'title' => 'Menu item 2'],
['routealias' => 'someroute', 'title' => 'Menu item 3'],
['routealias' => 'someroute', 'title' => 'Menu item 4'],
['routealias' => 'someroute', 'title' => 'Menu item 5'],
]]);
{!! Menu::get('admin') !!}
Please see CHANGELOG for more information what has changed recently.
If you discover any security related issues, please email mail@morningtrain.dk instead of using the issue tracker.
GNU General Public License v3.0. Please see License File for more information.