Missing the namespace for PHPExcel, try changing:
$objPHPExcel = new PHPExcel();
to
$objPHPExcel = new ExcelFunction\PHPExcel();
I solved the problem using "phpexcel/phpexcel": "dev-master"
in the composer.json file Than I used the command composer update
and its working with: $objPHPExcel = new \PHPExcel();
Thanks :D
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community