src/Http/Responses/ErrorResponseBuilder.php
public function data(array $data = null)
    {
        $this->data = array_merge((array) $this->data, (array) $data);

        return $this;
    }
public function data(array $data = null)
    {
        $this->data = array_merge((array) $this->data, (array) $data);

        return $this;
    }
Add additional data to the error.

@param  array|null $data
@return $this