feat : 테넌트 부트스트랩 오케스트레이션
Notion : https://www.notion.so/hamss/2579c8d34ba080d586b6faaae249f476?source=copy_link
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Models\Tenants\Tenant;
|
||||
use App\Observers\TenantObserver;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -42,5 +44,8 @@ public function boot(): void
|
||||
|
||||
// 메뉴 생성/수정/삭제 ↔ 권한 자동 동기화
|
||||
Menu::observe(MenuObserver::class);
|
||||
|
||||
// 테넌트 생성 시 자동 실행
|
||||
Tenant::observe(TenantObserver::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user