feat:Phase 2.4 문서 목록/검색/필터 완성 - 날짜 범위 필터 + 삭제 기능

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-31 05:07:33 +09:00
parent 5111db24c2
commit 4efd95e2ba
2 changed files with 46 additions and 1 deletions

View File

@@ -43,6 +43,14 @@ public function index(Request $request): JsonResponse
});
}
// 날짜 범위 필터
if ($request->filled('date_from')) {
$query->whereDate('created_at', '>=', $request->date_from);
}
if ($request->filled('date_to')) {
$query->whereDate('created_at', '<=', $request->date_to);
}
$documents = $query->paginate($request->input('per_page', 15));
return response()->json($documents);