'required|string|between:3,255', 'color' => 'required|string|hex_color', 'published' => 'required|boolean', ]; } /** * Get custom attributes for validator errors. * * @return array */ public function attributes(): array { return [ 'name' => trans('validation.custom.name'), 'color' => trans('validation.custom.color'), 'published' => trans('validation.custom.published'), ]; } }