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