update
This commit is contained in:
parent
a4d2557170
commit
20b34e0ed6
2 changed files with 30 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue