This commit is contained in:
Bozhidar Slaveykov 2024-04-03 14:00:49 +03:00
parent a4d2557170
commit 20b34e0ed6
2 changed files with 30 additions and 0 deletions

View file

@ -2,8 +2,10 @@
namespace Modules\Microweber\App\Providers;
use App\Events\HostingAccountIsCreated;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\ServiceProvider;
use Modules\Microweber\Listeners\HostingAccountIsCreatedListener;
class MicroweberServiceProvider extends ServiceProvider
{
@ -22,6 +24,8 @@ class MicroweberServiceProvider extends ServiceProvider
$this->registerConfig();
$this->registerViews();
$this->loadMigrationsFrom(module_path($this->moduleName, 'Database/migrations'));
Event::listen(HostingAccountIsCreated::class,HostingAccountIsCreatedListener::class);
}
/**

View file

@ -0,0 +1,26 @@
<?php
namespace Modules\Microweber\Listeners;
use App\Events\HostingAccountIsCreated;
class HostingAccountIsCreatedListener
{
/**
* Create the event listener.
*/
public function __construct()
{
//
}
/**
* Handle the event.
*/
public function handle(HostingAccountIsCreated $event): void
{
}
}