I'm getting this error whenever trying to upload and excel file
My function is
use Illuminate\Support\Facades\Input;
use Excel;
function:-
public function importProduct(){
$file = Input::file('file');
$file_name = $file->getClientOriginalName();
$file->move('excelData/',$file_name);
$result = \Excel::load('excelData/'.$file_name, function($reader){
$reader::all();
})->get();
return json_encode($result);
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire