From f80fcc4c1bfd01aeffe52ead9bec62dd4c63501d Mon Sep 17 00:00:00 2001 From: eko54r Date: Tue, 12 May 2026 08:28:50 +0700 Subject: [PATCH] cari error git --- app/Http/Controllers/Auth/RegisteredUserController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Auth/RegisteredUserController.php b/app/Http/Controllers/Auth/RegisteredUserController.php index babb4742..6bc8d5aa 100644 --- a/app/Http/Controllers/Auth/RegisteredUserController.php +++ b/app/Http/Controllers/Auth/RegisteredUserController.php @@ -98,7 +98,7 @@ public function store(Request $request) 'email' => $request->email ]); return response()->json([ - 'message' => 'Something went wrong. Please contact the admin.', + 'message' => config('app.debug') ? $th->getMessage() : 'Something went wrong. Please contact the admin.', ], 403); } } @@ -279,7 +279,7 @@ public function businessSetup(Request $request) } catch (\Throwable $th) { DB::rollBack(); return response()->json([ - 'message' => 'Something went wrong. Please contact the admin.', + 'message' => config('app.debug') ? $th->getMessage() : 'Something went wrong. Please contact the admin.', 'error' => $th->getMessage(), ], 403); }