diff --git a/app/Http/Controllers/Web/WebController.php b/app/Http/Controllers/Web/WebController.php index 441d430..a18baf3 100644 --- a/app/Http/Controllers/Web/WebController.php +++ b/app/Http/Controllers/Web/WebController.php @@ -215,7 +215,7 @@ abstract class WebController extends BaseController throw $e; } catch (ParamException $e) { $this->transaction->rollBack(); - throw $this->validateErrorResponse([$e->target => $e->getMessage()]); + return $this->validateErrorResponse([$e->target => $e->getMessage()]); } catch (Exception $e) { $this->transaction->rollBack(); logs()->error([