2

I'm working on a project with laravel 5.4. I'm editing an old project and adding some features. But I'm facing a problem with installing excel package that is suitable to this version. I think Maatwebsite/Laravel-Excel v:2.1 could be suitable but how can I install an old version of Maatwebsite/Laravel-Excel since the last version is is 3.1 ?

1

2 Answers 2

5

Add

"maatwebsite/excel": "~2.1.0"

in composer and re-install composer packages

or run

composer require maatwebsite/excel:2.1.0

enter image description here

Sign up to request clarification or add additional context in comments.

8 Comments

@Muhammed how can I re-install composer packages ?
@Developer composer install
It seems that it won't work with this version mine.It wasn't installed. It seems that even "maatwebsite/excel": "~2.1.0" doen't support this version .
@Developer check your PHP version
if I run composer update, will that affect anything in my project? @Muhammed
|
1

In addition to verifying PHP version, it seems better to run

composer require maatwebsite/excel:2.1.*

For example, Laravel 5.4 support starts in Maatwebsite/Laravel-Excel 2.1.10 and Laravel 5.5 support in Maatwebsite/Laravel-Excel 2.1.21

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.