FleetCart/Modules/Menu/Providers/EventServiceProvider.php

23 lines
491 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Modules\Menu\Providers;
use Modules\Menu\Entities\Menu;
use Modules\Menu\Events\Listeners\CreateRootMenuItem;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
class EventServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
parent::boot();
Menu::created(CreateRootMenuItem::class);
}
}