我正在使用 Maatwebsite/Excel 导入 CSV 文件。我的代码看起来像本教程: http: //itsolutionstuff.com/post/laravel-5-import-export-to-excel-and-csv-using-maatwebsite-exampleexample.html 我标记了两个函数,我的脚本获取文件和返回文件/
但尽管进行了多次尝试,我还是无法跳过上传文件。这意味着,我在特殊文件夹中有 CSV 文件,我想让这个文件来处理数据,而不上传。它会自动获取文件(可能是 file_get_contents ?),并将其传递给 Illuminate\Support\Facades\Input。