schema); // The tags attribute is dependent on this field. return parent::shouldSelect($query, $schema) || $tagsField->shouldRender($query); } /** * Set the update validation rules for the field. * * @param Request $request * @return array */ public function getUpdateRules(Request $request): array { return [ 'sometimes', 'required', new Enum(VideoSource::class), ]; } }