Skip to content
Advertisement

How to install Maatwebsite/Laravel-Excel for laravel 5.4?

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 ?

Advertisement

Answer

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

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement