To install through composer, by run the following command:
composer require nwidart/laravel-menus
Next add the following service provider in
'providers' => [ Nwidart\Menus\MenusServiceProvider::class, ],
Next, add the following aliases to
aliases array in the same file.
'aliases' => [ 'Menu' => Nwidart\Menus\Facades\Menu::class, ],
Next publish the package's configuration file by running :
php artisan vendor:publish --provider="Nwidart\Menus\MenusServiceProvider"