fix : Trait 추가 및 query 디버깅 소스 수정
This commit is contained in:
@@ -77,9 +77,10 @@ public static function validate(
|
||||
return $condition ? null : self::error($message, $code, $extra);
|
||||
}
|
||||
|
||||
public static function response($type = '', $query = '', $debug = false, $key = ''): array
|
||||
public static function response($type = '', $query = '', $key = ''): array
|
||||
{
|
||||
if ($debug && $type != 'success') DB::enableQueryLog(); // 쿼리 추적
|
||||
if (app()->environment('local')) $debug = true;
|
||||
if ($debug) DB::enableQueryLog(); // 쿼리 추적
|
||||
|
||||
$result = match ($type) {
|
||||
'get' => $key ? $query->get()->keyBy($key) : $query->get(),
|
||||
|
||||
Reference in New Issue
Block a user