📖
Tomato Menus
Menus manager to build your menus with json file or database provider

composer require tomatophp/tomato-menus
after install your package please run this command
php artisan tomato-menus:install
you can publish config file by use this command
php artisan vendor:publish --tag="tomato-menus-config"
you can publish views file by use this command
php artisan vendor:publish --tag="tomato-menus-views"
you can publish languages file by use this command
php artisan vendor:publish --tag="tomato-menus-lang"
you can publish migrations file by use this command
php artisan vendor:publish --tag="tomato-menus-migrations"
you can use the menu provider on anywhere by our menu provider class it will return your menu anywhere on the app just use
use TomatoPHP\TomatoMenus\Services\MenuRenderBase;
MenuRenderBase::menu($key, $by = 'key');
or you can use it with your tomato admin panel by setting the config of menu_provider to be
"menu_provider" => TomatoPHP\TomatoMenus\Services\MenuRenderBase::class
Last modified 3mo ago