From a4863075eb76046d11c6ba059efa739f567bfbab Mon Sep 17 00:00:00 2001 From: AVMG20 Date: Mon, 12 Jul 2021 13:47:57 +0200 Subject: [PATCH] small error response change --- app/Http/Controllers/Admin/VoucherController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/VoucherController.php b/app/Http/Controllers/Admin/VoucherController.php index e6f24255..8aaab14f 100644 --- a/app/Http/Controllers/Admin/VoucherController.php +++ b/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