2025-08-22 15:57:44 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Observers;
|
|
|
|
|
|
|
|
|
|
use App\Models\Tenants\Tenant;
|
|
|
|
|
use App\Services\TenantBootstrapper;
|
|
|
|
|
|
|
|
|
|
class TenantObserver
|
|
|
|
|
{
|
|
|
|
|
public function created(Tenant $tenant): void
|
|
|
|
|
{
|
2025-11-06 17:45:49 +09:00
|
|
|
app(TenantBootstrapper::class)->bootstrap((int) $tenant->id, 'STANDARD');
|
2025-08-22 15:57:44 +09:00
|
|
|
}
|
|
|
|
|
}
|