Laravel-excel: Class 'Maatwebsite\Excel\Excel' not found

Created on 6 Sep 2018  ·  3Comments  ·  Source: Maatwebsite/Laravel-Excel

[BUG]
{X}

Versions

  • PHP version: 7.2
  • Laravel version: 5.5
  • Package version: "maatwebsite/excel": "^3.0",

Description


Class 'Maatwebsite\Excel\Excel' not found

Steps to Reproduce

I just pushed my working fine laravel project in a shared hosting : infinity free

Expected behavior:

Actual behavior:

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

image

question

All 3 comments

Me to i have this problem i cach and deploy and steel hapening

I change the maatwebsite/excel Package version from "^3.0" to "~2.1.0".
This behaviour can fix it.
You can have a try.

Downgrading the package is of course never the solution.

Make sure you run composer install on your server. It seems you are missing the dependency on the server.

If it's just a problem with the config file, replace the Excel::XLSX by Xlsx. It shouldn't give any problems when the package is correctly installed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lucatamtam picture lucatamtam  ·  3Comments

muhghazaliakbar picture muhghazaliakbar  ·  3Comments

rossjcooper picture rossjcooper  ·  3Comments

ellej16 picture ellej16  ·  3Comments

matthewslouismarie picture matthewslouismarie  ·  3Comments