|string> */ public function rules(): array { return [ 'theme' => ['required', new Enum(BootstrapThemeEnum::class)], ]; } /** * Get custom attributes for validator errors. * * @return array|null> */ public function attributes(): array { return [ 'theme' => trans('validation.custom.theme'), ]; } }