소스 검색

Update UserController.php

António Duarte 3 년 전
부모
커밋
57edcd0b57
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/Api/UserController.php

+ 1 - 1
app/Http/Controllers/Api/UserController.php

@@ -80,7 +80,7 @@ class UserController extends Controller
         ]);
         
         if ($request->user()->credits + $request->credits >= 99999999) throw ValidationException::withMessages([
-            'code' => "You can't add this amount of credits because you would exceed the credit limit"
+            'credits' => "You can't add this amount of credits because you would exceed the credit limit"
         ]);
         
         $user->increment('credits', $request->credits);