Laravel 6 pathinfo() expects parameter 1 to be string, object given
问题 This is where i get the error: $data = Excel::import($path, function($reader) {})->get(); I changed the load() to import() . I want to run this code in Laravel 6, but version 3 of MaatWebsiteExcel does not support load() . I've been searching for solutions, yet i cant find any.... This is my controller: namespace App\Http\Controllers; use App\Contact; use App\CsvData; use App\Http\Requests\CsvImportRequest; use Illuminate\Http\Request; use Maatwebsite\Excel\Facades\Excel; use Session; use DB;