API 로그 필터 개선: 메서드 다중선택, 즉시 반영
This commit is contained in:
@@ -28,9 +28,14 @@ public function index(Request $request): View
|
||||
$query->orderByDesc('created_at'); // 최신순
|
||||
}
|
||||
|
||||
// 필터: HTTP 메서드
|
||||
// 필터: HTTP 메서드 (다중 선택 가능)
|
||||
if ($request->filled('method')) {
|
||||
$query->where('method', $request->method);
|
||||
$methods = $request->input('method');
|
||||
if (is_array($methods)) {
|
||||
$query->whereIn('method', $methods);
|
||||
} else {
|
||||
$query->where('method', $methods);
|
||||
}
|
||||
}
|
||||
|
||||
// 필터: 상태 코드
|
||||
|
||||
Reference in New Issue
Block a user