Replies: 4 comments 12 replies
-
You are not on the lastest laravel excel, you have installed v2 not v3.1 |
Beta Was this translation helpful? Give feedback.
-
I am also using Laravel 7. Once I run
When I tried to install the latest one using
Need and appreaciate your time and help on this. |
Beta Was this translation helpful? Give feedback.
-
I had the same error when running initial |
Beta Was this translation helpful? Give feedback.
-
BadMethodCallException Method Illuminate\Foundation\Application::share does not exist. at vendor\laravel\framework\src\Illuminate\Macroable\Traits\Macroable.php:112 1 vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:15 2 vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:58 { |
Beta Was this translation helpful? Give feedback.
-
Hello everyone. Can you guys help me to fix the problem that I had.
So, wanted to try testing Laravel-Excel, I follow the instruction, but when I try move to next instruction "php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider" --tag=config" I got type of error like this.
" Error
Call to undefined method Illuminate\Foundation\Application::share()
at C:\xampp\htdocs\test_laravel_7\vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:154
150| */
151| protected function bindClasses()
152| {
153| // Bind the format identifier
1 C:\xampp\htdocs\test_laravel_7\vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:58
Maatwebsite\Excel\ExcelServiceProvider::bindClasses()
2 C:\xampp\htdocs\test_laravel_7\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:627
Maatwebsite\Excel\ExcelServiceProvider::register()"
So how do I fix this? Thank's
I'm Currently on Laravel 7, Latest Laravel-Excel, and Php ^7.2.5|^8.0
Beta Was this translation helpful? Give feedback.
All reactions