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); }