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

23 lines
491 B
PHP

<?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);
}
}