SpartnerNL / Laravel-Excel

🚀 Supercharged Excel exports and imports in Laravel
https://laravel-excel.com
MIT License
12.18k stars 1.9k forks source link

[Bug]: php 8.2 not supported #4163

Closed aarseneault-kryzalid closed 3 weeks ago

aarseneault-kryzalid commented 1 month ago

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 and up

What version of Laravel are you using?

9.19

What version of PHP are you using?

php 8.2.4

Describe your issue

Cannot install laravel excel on php versions starting with 8.2 and up.

Problem 1

How can the issue be reproduced?

trying to install laravel excel on a php 8.2 project

What should be the expected behaviour?

failing to install

patrickbrouwers commented 1 month ago

Php 8.2 has been supported for years. Try to lock to the latest version to see what other dependencies block the install

handhikadj commented 1 month ago

@aarseneault-kryzalid please try to delete composer-lock.json file and run composer install again

thomasgalue commented 1 month ago

I'm using php 8.3 with this package, its all about the caret (the version number at the end) See the docs here: https://docs.laravel-excel.com/3.1/getting-started/installation.html

In short terms, just use: composer require maatwebsite/excel