|string> */ public function rules(): array { return [ 'asset' => ['sometimes', 'string'], 'position' => ['sometimes', 'string'], 'opacity' => ['sometimes', 'numeric', 'min:0', 'max:1'], 'scale' => ['sometimes', 'numeric', 'min:0.05', 'max:1'], 'padding' => ['sometimes', 'integer', 'min:0'], 'offset_x' => ['sometimes', 'integer', 'min:-500', 'max:500'], 'offset_y' => ['sometimes', 'integer', 'min:-500', 'max:500'], ]; } }