merge([ 'asset_tag' => $this->asset_tag ?? $this->asset->asset_tag, 'model_id' => $this->model_id ?? $this->asset->model_id, 'status_id' => $this->status_id ?? $this->asset->status_id, ]); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { $rules = array_merge( (new Asset())->getRules(), parent::rules(), ); return $rules; } }