Flarum\Api\Handler\IlluminateValidationExceptionHandler::handle PHP Method

handle() public method

public handle ( Exception $e )
$e Exception
    public function handle(Exception $e)
    {
        $status = 422;
        $errors = $this->formatErrors($e->errors()->toArray());
        return new ResponseBag($status, $errors);
    }
IlluminateValidationExceptionHandler