Skip to content

[Bug]: Method Illuminate\Foundation\Application::share does not exist. #4280

@tranvantruongktech

Description

@tranvantruongktech

Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?

  • Yes, it's still reproducable

What version of Laravel Excel are you using?

1.1.5

What version of Laravel are you using?

11

What version of PHP are you using?

8.2

Describe your issue

Method Illuminate\Foundation\Application::share does not exist.

at vendor\laravel\framework\src\Illuminate\Macroable\Traits\Macroable.php:115
111▕ */
112▕ public function __call($method, $parameters)
113▕ {
114▕ if (! static::hasMacro($method)) {
➜ 115▕ throw new BadMethodCallException(sprintf(
116▕ 'Method %s::%s does not exist.', static::class, $method
117▕ ));
118▕ }
119▕

1 vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:154
Illuminate\Foundation\Application::__call("share")

2 vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:58
Maatwebsite\Excel\ExcelServiceProvider::bindClasses()

How can the issue be reproduced?

method share unavailable in laravel 11.

What should be the expected behaviour?

can i help you?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions