feat: 더미 데이터 시더 추가 및 회계 관련 마이그레이션

- DummyDataSeeder 및 개별 시더 추가 (Client, BadDebt, Deposit 등)
- payments.paid_at nullable 마이그레이션
- subscriptions 취소 컬럼 추가
- clients 테이블 bad_debt 컬럼 제거
- PlanController, ClientService 수정
- 불필요한 claudedocs, flow-test 파일 정리
This commit is contained in:
2025-12-24 08:54:52 +09:00
parent 71123128ff
commit 8686b199ee
30 changed files with 1278 additions and 2655 deletions

View File

@@ -3,6 +3,7 @@
namespace App\Exceptions;
use Illuminate\Auth\AuthenticationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Illuminate\Support\Facades\Http;
use Illuminate\Validation\ValidationException;
@@ -114,7 +115,7 @@ public function render($request, Throwable $exception)
], 403);
}
// 404 Not Found
// 404 Not Found - 라우트 없음
if ($exception instanceof NotFoundHttpException) {
return response()->json([
'success' => false,
@@ -123,6 +124,15 @@ public function render($request, Throwable $exception)
], 404);
}
// 404 Not Found - 모델 없음 (findOrFail 등)
if ($exception instanceof ModelNotFoundException) {
return response()->json([
'success' => false,
'message' => '데이터를 찾을 수 없습니다',
'data' => null,
], 404);
}
// 405 Method Not Allowed
if ($exception instanceof MethodNotAllowedHttpException) {
return response()->json([