all(); // Add active company id $data['company_id'] = session('company_id'); // Reset the request data $this->getInputSource()->replace($data); return parent::getValidatorInstance(); } /** * Determine if the given offset exists. * * @param string $offset * @return bool */ public function offsetExists($offset) { return Arr::has( $this->route() ? $this->all() + $this->route()->parameters() : $this->all(), $offset ); } }