*/ protected function modeRules(): array { return [ 'sku' => ['required', 'string', 'max:32', $this->unique('sku')], ]; } /** * Nothing exists yet, so the column must be free outright. */ protected function unique(string $column): Unique { return Rule::unique('products', $column); } }