소스 검색

small error response change

AVMG20 4 년 전
부모
커밋
a4863075eb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/Admin/VoucherController.php

+ 1 - 1
app/Http/Controllers/Admin/VoucherController.php

@@ -143,7 +143,7 @@ class VoucherController extends Controller
         ]);
 
         if ($request->user()->credits + $voucher->credits >= 99999999) throw ValidationException::withMessages([
-            'code' => "You can't redeem a voucher with this many credits"
+            'code' => "You can't redeem this voucher because you would exceed the credit limit"
         ]);
 
         #redeem voucher