From 99be54fd96364d134a8ac10edfece85fcfecc066 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 24 Oct 2017 19:17:30 -0700 Subject: [PATCH] Fixed success message on saving new user --- app/Http/Controllers/Api/UsersController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 6420a19b27..08d007f929 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -125,7 +125,7 @@ class UsersController extends Controller $user->password = bcrypt($request->input('password')); if ($user->save()) { - return response()->json(Helper::formatStandardApiResponse('success', (new UsersTransformer)->transformUser($user), trans('admin/users/message.create.success'))); + return response()->json(Helper::formatStandardApiResponse('success', (new UsersTransformer)->transformUser($user), trans('admin/users/message.success.create'))); } return response()->json(Helper::formatStandardApiResponse('error', null, $user->getErrors())); }