Laravel-excel: Call to undefined method Maatwebsite\Excel\Excel::load()

Created on 6 Apr 2018  路  11Comments  路  Source: Maatwebsite/Laravel-Excel

I just get this error, when I try to import excel based on https://laravel-excel.maatwebsite.nl :

Symfony\Component\DebugException\FatalThrowableError thrown with message "Call to undefined method MaatwebsiteExcelExcel::load()"

I did composer update, and install
hope someone can help me to solve this.

Most helpful comment

@patrickbrouwers What should we use instead of load() in 3.0 ?

All 11 comments

What version are you testing?

It's not clear on the documentation - how do you now read/load files in v3?

I honestly don鈥檛 know how we can make it clearer that 3.0 doesn鈥檛 support import? The upgrade mentions this, we have written it on the blog and we have answered this question already many times. Please use the search function on github when opening issues, it prevents us from answering the same question over and over. Closing as duplicate of #1581

@patrickbrouwers What should we use instead of load() in 3.0 ?

importing is totally absent in version 3 i had to install version 2 to get that

how to i insatall version 2

Hi,
I am trying with 2.1 packages but still, I get this error. I tried adding provider with MaatwebsiteExcelExcelServiceProvider::class, and aliases with 'Excel' => MaatwebsiteExcel\FacadesExcel::class, Can anyone help me to sort out this

  (1/1) FatalThrowableError

Call to undefined method MaatwebsiteExcelExcelServiceProvider::load()

https://laravel-excel.maatwebsite.nl/3.0/getting-started/upgrade.html
Please read section Deprecations @gowrishankari
Thanks.

3 1

https://laravel-excel.maatwebsite.nl/3.0/getting-started/upgrade.html
Please read section Deprecations @gowrishankari
Thanks.

Hi, it was stated there in your link "Excel::load() is removed and will not be re-added until 3.1", but I am now using 3.1 and still getting the error,

@LouieGB Go to this link and you will get your query solved https://docs.laravel-excel.com/3.1/getting-started/upgrade.html
Maatwebsite has removed Excel::load() function with Excel::import($your_import_filename).

Was this page helpful?
0 / 5 - 0 ratings