HTML Menu Generator that plays well with bootstrap, (*1)
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, (*2)
HeliMenuGenerator just generates multi level html ul
list this because every project has it's own styling, (*3)
installation
in config/app
file, (*4)
1- the providers
section add the following ling, (*5)
Helilabs\HeliMenuGenerator\LaravelLogic\HeliMenuGeneratorServiceProvider::class,
2- the aliases
section add the following ling, (*6)
'Menu' => Helilabs\HeliMenuGenerator\LaravelLogic\HeliMenuGenerator::class,
fisrt create a menu Array like this, (*7)
$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, (*8)
{!! HeliMenuGenerator::parse( $menu ) !!}