最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

import - Package "Maatwebsite\Excel\Facades\Excel" doesn't work yet on Laravel 11 - Stack Overflow

programmeradmin1浏览0评论

What version of Laravel Excel are you using? ^3.1 | 3.1.x-dev

What version of Laravel are you using? ^11.9

What version of PHP are you using? ^8.2

I have tried installing composer require maatwebsite/excel to composer require maatwebsite/excel ^3.1 or composer require maatwebsite/excel 3.1.x-dev (include --with-all-dependencies too) but it still doesn't work.

Also added manual providers and aliases on config/app.php file still error.

And run command composer show maatwebsite/excel, show:

requires
composer/semver ^3.3
ext-json *
illuminate/support 5.8.*||^6.0||^7.0||^8.0||^9.0||^10.0||^11.0
php ^7.0||^8.0
phpoffice/phpspreadsheet ^1.29.9
psr/simple-cache ^1.0||^2.0||^3.0

requires (dev)
laravel/scout ^7.0||^8.0||^9.0||^10.0
orchestra/testbench ^6.0||^7.0||^8.0||^9.0
predis/predis ^1.1

It looks like this package is not yet compatible with Laravel 11 because the lts from composer show is laravel/scout ^10.0, can anyone help?

发布评论

评论列表(0)

  1. 暂无评论