Laravel

# Integrate Excel into your Laravel project

Published on May 25th, 2020

Before you integrate Excel into your application, make sure your project meets the following requirements:

• PHP v7.0 or greater
• Laravel v5.5 or greater

Download the maatwebsite/excel package using Composer:


composer require maatwebsite/excel



## Add it to service provider

By default, this will be done automatically when you're installing the package but if you want to do it yourself, add this in your config/app.php file:


<?php
...
'providers' => [
...
Maatwebsite\Excel\ExcelServiceProvider::class,
],

...
'aliases' => [
...
],
?>



Last but not the least, run the vendor:publish command using artisan to publish your configuration:



Upon publishing, the config/excel.php configuration file will be created where you can make your changes.