-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: #3489
Comments
Seems you are somehow installing v2 of the package. Try |
D:\Saqlain Khadim\laravel-excel> composer require maatwebsite/excel
Using version ^3.1 for maatwebsite/excel
./composer.json has been updated
Running composer update maatwebsite/excel
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- maatwebsite/excel[3.1.28, ..., 3.1.30] require
phpoffice/phpspreadsheet 1.16.* -> satisfiable by
phpoffice/phpspreadsheet[1.16.0].
- maatwebsite/excel[3.1.31, ..., 3.1.x-dev] require
phpoffice/phpspreadsheet ^1.18 -> satisfiable by
phpoffice/phpspreadsheet[1.18.0, 1.19.0, 1.20.0, 1.21.0].
- maatwebsite/excel 3.1.27 requires phpoffice/phpspreadsheet ^1.16 ->
satisfiable by phpoffice/phpspreadsheet[1.16.0, ..., 1.21.0].
- maatwebsite/excel 3.1.26 requires phpoffice/phpspreadsheet ^1.15 ->
satisfiable by phpoffice/phpspreadsheet[1.15.0, ..., 1.21.0].
- maatwebsite/excel[3.1.0, ..., 3.1.25] require php ^7.0 -> your php
version (8.1.1) does not satisfy that requirement.
- phpoffice/phpspreadsheet[1.15.0, ..., 1.21.0] require ext-gd * -> it
is missing from your system. Install or enable PHP's gd extension.
- Root composer.json requires maatwebsite/excel ^3.1 -> satisfiable by
maatwebsite/excel[3.1.0, ..., 3.1.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- C:\xampp\php\php.ini
You can also run `php --ini` in a terminal to see which files are used by
PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-gd` to
temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version
constraint, e.g. "composer require maatwebsite/excel:*" to figure out if
any version is
installable, or "composer require maatwebsite/excel:^2.1" if you know which
you need.
Installation failed, reverting ./composer.json and ./composer.lock to their
original content.
…On Fri, Jan 7, 2022, 4:33 PM Patrick Brouwers ***@***.***> wrote:
Seems you are somehow installing v2 of the package. Try composer require
maatwebsite/excel without the :*
—
Reply to this email directly, view it on GitHub
<#3489 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWSHATZ6OKAQHRBAGBCRE7TUU3FQJANCNFSM5LOLKC5A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
phpoffice/phpspreadsheet[1.15.0, ..., 1.21.0] require ext-gd * -> it |
C:\xampp\htdocs\psu>composer require maatwebsite/excel Problem 1 Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions. |
Error Call to undefined method Illuminate\Foundation\Application::share() at D:\Xampp\htdocs\laravel-newsportal\vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:154 1 D:\Xampp\htdocs\laravel-newsportal\vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:58 2 D:\Xampp\htdocs\laravel-newsportal\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:682 |
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?
composer require maatwebsite/excel:*
What version of Laravel are you using?
8.78.1
What version of PHP are you using?
8.1.1
Describe your issue
now here when i run any artisan command an Error Occur :
Error
Call to undefined method Illuminate\Foundation\Application::share()
at D:\Saqlain Khadim\blog\vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:154
150▕ */
151▕ protected function bindClasses()
152▕ {
153▕ // Bind the format identifier
➜ 154▕ $this->app['excel.identifier'] = $this->app->share(function($app) {
155▕ return new FormatIdentifier($app['files']);
156▕ });
157▕ }
158▕
▕ }
158▕
��
1 D:\Saqlain Khadim\blog\vendor\maatwebsite\excel\src\Maatwebsite\Excel\ExcelServiceProvider.php:58
Maatwebsite\Excel\ExcelServiceProvider::bindClasses()
2 D:\Saqlain Khadim\blog\vendor\laravel\framework\src\Illuminate\Foundation\Application.php:682
Maatwebsite\Excel\ExcelServiceProvider::register()
Please Help .....
How can the issue be reproduced?
when i run in an laravel application
composer require maatwebsite/excel
installation failed requirements does not meet
then i run
composer require maatwebsite/excel :*
then i think its installed
then i open config/app.php file and add service provider and aliase.
config/app.php
'providers' => [
],
'aliases' => [
],
What should be the expected behaviour?
I dont know
The text was updated successfully, but these errors were encountered: