I try to import and show details in blade php
If comment this section, there's no error
$results = Excel::load('files/' . $file_name, function($reader){
$reader->all();
})->get();
i want to read and display the details from excel sheet to blade template here is my code:
public function ImportClients(){
$file = Input::file('file');
$file_name = $file->getClientOriginalName(); // save the file name
$file->move('files/', $file_name); // file moved successfuly
$results = Excel::load('files/' . $file_name, function($reader){
$reader->all();
})->get();
// return view('clients', compact('results'));
}
This is the error msg: check the image for error msg