fix : Tenant API 추가
- 테넌트 목록 조회 - 테넌트 정보 조회 - 테넌트 정보 수정 - 테넌트 등록 - 테넌트 삭제 - 테넌트 복구
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
{
|
||||
@@ -12,7 +13,13 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register(): void
|
||||
{
|
||||
//
|
||||
// 개발환경 + API 라우트에서만 쿼리 로그 수집
|
||||
if (app()->environment('local')) {
|
||||
// 콘솔/큐 등 non-HTTP 컨텍스트 보호
|
||||
if (function_exists('request') && request() && request()->is('api/*')) {
|
||||
DB::enableQueryLog();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user