FleetCart/Modules/Menu/Providers/MenuServiceProvider.php
2023-06-11 13:14:03 +01:00

27 lines
709 B
PHP

<?php
namespace Modules\Menu\Providers;
use Modules\Menu\Admin\MenuItemTabs;
use Modules\Support\Traits\AddsAsset;
use Illuminate\Support\ServiceProvider;
use Modules\Admin\Ui\Facades\TabManager;
class MenuServiceProvider extends ServiceProvider
{
use AddsAsset;
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
TabManager::register('menu_items', MenuItemTabs::class);
$this->addAdminAssets('admin.menus.(create|edit)', ['admin.menu.css', 'admin.menu.js']);
$this->addAdminAssets('admin.menus.items.(create|edit)', ['admin.media.css', 'admin.media.js', 'admin.menu.js']);
}
}