check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|string|min:3|max:255', 'file_name' => 'required|string|min:3|max:255' ]; } /** * Get custom attributes for validator errors. * * @return array */ public function attributes(): array { return [ 'name' => trans('Nom de la page de gain'), 'file_name' => trans('Nom du fchier'), ]; } }