Fix validation bug
This commit is contained in:
parent
c069b8d18a
commit
2d1452d72a
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ class SubuserRepository
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($validator->fails()) {
|
if ($validator->fails()) {
|
||||||
throw new DisplayValidationException(json_encode($validator->all()));
|
throw new DisplayValidationException(json_encode($validator->errors()));
|
||||||
}
|
}
|
||||||
|
|
||||||
DB::beginTransaction();
|
DB::beginTransaction();
|
||||||
|
|
Loading…
Reference in a new issue