feat : 테넌트 부트스트랩 오케스트레이션
Notion : https://www.notion.so/hamss/2579c8d34ba080d586b6faaae249f476?source=copy_link
This commit is contained in:
14
app/Observers/TenantObserver.php
Normal file
14
app/Observers/TenantObserver.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Observers;
|
||||
|
||||
use App\Models\Tenants\Tenant;
|
||||
use App\Services\TenantBootstrapper;
|
||||
|
||||
class TenantObserver
|
||||
{
|
||||
public function created(Tenant $tenant): void
|
||||
{
|
||||
app(TenantBootstrapper::class)->bootstrap((int)$tenant->id, 'STANDARD');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user