'required|exists:products,id', 'count' => 'required|numeric' ]; } /** * @return mixed */ public function getSize() { if ($this->get('size')) { return $this->get('size'); } return $this->get('size'); } }