diff --git a/app/Repositories/SubuserRepository.php b/app/Repositories/SubuserRepository.php index 1f237ae56..556ab7b0f 100644 --- a/app/Repositories/SubuserRepository.php +++ b/app/Repositories/SubuserRepository.php @@ -109,7 +109,7 @@ class SubuserRepository ]); if ($validator->fails()) { - throw new DisplayValidationException(json_encode($validator->all())); + throw new DisplayValidationException(json_encode($validator->errors())); } DB::beginTransaction();