Why are you trying to install that specific version of maatwebsite/excel? The latest version (3.1) supports Laravel 9
Sep 8, 2022
10
Level 1
Trying to install maatwebsite/excel:^2.1
Trying to install maatwebsite/excel:^2.1 . But facing the below error. My laravel version is 9 ?
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires maatwebsite/excel 2.1 -> satisfiable by maatwebsite/excel[v2.1.0].
- maatwebsite/excel v2.1.0 requires illuminate/cache 5.0.*|5.1.*|5.2.* -> found illuminate/cache[v5.0.0, ..., 5.2.x-dev] but these were not loaded, likely because it conflicts with another require.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
First I tried to install composer require psr/simple-cache:^2.0 And then ran the composer instal for maatwebsite/excel. But still no luck .
Any possible solution for this issue . ? Also can some one advise if the maatwebsite package are efficient ones for Excel import and export ? Pls Suggest me any other good packages if any .
Level 102
@priyalaks Its not a composer package. You need to enable it in xampp
https://www.geeksforgeeks.org/how-to-install-php-gd-in-xampp/
Please or to participate in this conversation.