Non-static method Maatwebsite\Excel\Excel::import() should not be called statically
I am try anything i can do but still like this
Thanks for submitting the ticket. Unfortunately the information you provided is incomplete. We need to know which version you use and how to reproduce it. Please include code examples. Before we can pick it up, please check (https://github.com/Maatwebsite/Laravel-Excel/blob/3.1/.github/ISSUE_TEMPLATE.md) and add the missing information. To make processing of this ticket a lot easier, please make sure to check (https://laravel-excel.maatwebsite.nl/3.1/getting-started/contributing.html) and double-check if you have filled in the issue template correctly. This will allow us to pick up your ticket more efficiently. Issues that follow the guidelines correctly will get priority over other issues.
@nopalnaxcpm Please share your code.
@nopalnaxcpm it's Maatwebsite\Excel\Facades\Excel; not Maatwebsite\Excel\Excel when using ::import .
Please check the namespace imports in the examples in the documentation: https://laravel-excel.maatwebsite.nl/3.1/imports/
Most helpful comment
@nopalnaxcpm it's
Maatwebsite\Excel\Facades\Excel;notMaatwebsite\Excel\Excelwhen using::import.Please check the namespace imports in the examples in the documentation: https://laravel-excel.maatwebsite.nl/3.1/imports/