Skip to content

[Complete:Production Ready] This package makes it easy for generating menu dynamically. It makes use of config and facade. It is very customizable

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

Rndwiga/laravel-menu-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-menu-generator

For below laravel 5.5

register the Service provider Tyondo\MenuGenerator\TyondoMenuGeneratorServiceProvider::class,

The service prover is autoloaded in laravel 5.5 ##usage

{!! GenerateMenu::generateMenu(config('tyondo_menu_generator.navigation')) !!}

or

{!! GenerateMenu::generateMenu(config('tyondo_menu_generator.navigation',view.template)) !!}

then publish the config file:

php artisan vendor:publish

###Sample Menu

'navigation' => [
        [
            'type' => 'single',
            'title' => 'Dashboard',
            'class' => 'fa fa-fw fa-home fa-lg',
            'route' => 'gentella.home',
        ],
        [
            'type' => 'group',
            'group' => 'Assessment',
            'class' => 'fa fa-cubes fa-lg',
            'links' => [
                [
                    'title' => 'Personal Information',
                    'class' => 'fa fa-fw fa-plus',
                    'route' => 'admin.personal.information.index'
                ],
                [
                    'title' => 'Personal Assessment',
                    'class' => 'fa fa-fw fa-th-list',
                    'route' => 'admin.personal.assessment.index'
                ],
                'separator',

                [
                    'title' => 'Training Needs',
                    'class' => 'fa fa-fw fa-table',
                    'route' => 'admin.training.assessment.index'
                ],
            ]
        ],
    ],

About

[Complete:Production Ready] This package makes it easy for generating menu dynamically. It makes use of config and facade. It is very customizable

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published