Fixed success message on saving new user

This commit is contained in:
snipe 2017-10-24 19:17:30 -07:00
parent 35da7906cc
commit 99be54fd96

View file

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