You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
3.1.52
What version of Laravel are you using?
6.0.x
What version of PHP are you using?
7.4.3
Describe your issue
after composer update the project i can't use the library when importing file excel.
got error "Call to undefined function Maatwebsite\Excel\resolve()"
How can the issue be reproduced?
Import file excel.
What should be the expected behaviour?
before composer update, i'm trying install specific version 3.1.47 and it work when importing file xlsx.
The text was updated successfully, but these errors were encountered:
Hi, just found out that in 3.1.52 using function resolve() which is not (i think) available in laravel/lumen-framework 6
this error can be fixed somehow with import a new function resolve(), because in older laravel, function resolve() is not registered yet in helpers.php (laravel helper).
for now i registered it in my own helper and do composer dump-autoload, maybe it helps for other who experience it.
maybe the owner of this library can confirm it.
if (! function_exists('resolve')) {
/**
* Resolve a service from the container.
*
* @param string $name
* @param array $parameters
* @return mixed
*/
function resolve($name, array $parameters = [])
{
return app($name, $parameters);
}
}
I don't really support Lumen with this package, only on best effort basis as I don't have automated tests for Lumen. I've updated the resolve helper to app, but I don't know if there's more things that don't work correctly with Lumen
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.52
What version of Laravel are you using?
6.0.x
What version of PHP are you using?
7.4.3
Describe your issue
after composer update the project i can't use the library when importing file excel.
got error "Call to undefined function Maatwebsite\Excel\resolve()"
How can the issue be reproduced?
What should be the expected behaviour?
before composer update, i'm trying install specific version 3.1.47 and it work when importing file xlsx.
The text was updated successfully, but these errors were encountered: