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', 'integer', 'min:360', 'max:1080', ]; } }