helilabs / menu-generator
This package is abandoned and no longer maintained.
No replacement package was suggested.
HTML Menu Generator that plays well with bootstrap.
0.2.0
2017-05-05 19:48 UTC
Requires
This package is not auto-updated.
Last update: 2020-05-30 21:00:58 UTC
README
HTML Menu Generator that plays well with bootstrap
Why Built
This was because in every new project i do for some client i start with the same menu so i needed a menu genertor to save time as much as possible
What does HeliMenuGenerator exactly generate?
HeliMenuGenerator just generates multi level html ul
list this because every project has it's own styling
installation
in config/app
file
1- the providers
section add the following ling
Helilabs\HeliMenuGenerator\LaravelLogic\HeliMenuGeneratorServiceProvider::class,
2- the aliases
section add the following ling
'Menu' => Helilabs\HeliMenuGenerator\LaravelLogic\HeliMenuGenerator::class,
How to use HeliMenuGenerator?
fisrt create a menu Array like this
$menu = [ 'dashboard' => [ 'icon' => 'ti-panel', 'text' => trans('messages.dashboard'), 'url' => url('/') ], 'users' => [ 'icon' => 'ti-user', 'text' => trans('messages.users'), 'url' => url('/') ], 'productsContainer' => [ 'icon' => 'ti-package', 'text' => trans('messages.products'), 'url' => '#', 'children' => [ 'products' => [ 'icon' => 'ti-package', 'text' => trans('messaegs.products'), 'url' => url('/products'), ], 'categories' => [ 'icon' => 'ti-layers-alt', 'text' => trans('messages.categories'), 'url' => url('/categories') ] ] ], 'orders' => [ 'icon' => 'ti-shopping-cart', 'text' => trans('messages.orders'), 'url' => url('/') ], ];
then use menu generator to do the rest
{!! HeliMenuGenerator::parse( $menu ) !!}