Support the ongoing development of Laravel.io →
Configuration Requests Packages
Last updated 2 years ago.
0

Missing the namespace for PHPExcel, try changing:

$objPHPExcel = new PHPExcel();

to

$objPHPExcel = new ExcelFunction\PHPExcel();

0
Solution

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

0

Sign in to participate in this thread!

Eventy

Your banner here too?

apeafa apeafa Joined 23 May 2016

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.