|string> */ public function rules(): array { return [ 'filetoinsert' => ['required', 'mimes:csv']//, File::types(['csv'])] ]; } public function messages(): array { return [ 'filetoinsert.required' => 'ERROR: csv file not selected!', 'filetoinsert.mimes'=> "ERRORE: select only csv format" ]; } /** * Determine if the user is authorized to make this request. */ public function authorize(): bool { return true; } }