Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Maatwebsite Excel Installation Guide Through Composer

STEP 1

First make sure in the command-line interface


(CLI) you are pointing to Aboitiz Rums file
directory. If not change the directory. In my case
it’s in “/var/www/abprod”.

STEP 2

After making sure that you are in the right


directory, enter this command “composer
require maatwebsite/excel” and press enter.

STEP 3

If the installation was a success, at the end, it


should display “package manifest generated
successfully”.

STEP 4

Then open config/app.php in the aboitiz rums


files.

NOTE: You can skip step 5, 6 and 7 if it already


exists.

STEP 5

Paste “Maatwebsite\Excel\
ExcelServiceProvider::class,” inside providers of
app.php.

Example:
'providers' => [
/*
* Package Service Providers...
*/
Maatwebsite\Excel\
ExcelServiceProvider::class,
],
Maatwebsite Excel Installation Guide Through Composer

STEP 6

Also, paste “'Excel' => Maatwebsite\Excel\


Facades\Excel::class,” inside aliases of app.php.

Example:
'aliases' => [
...
'Excel' => Maatwebsite\Excel\Facades\
Excel::class,
],

STEP 7

Save and upload changes

STEP 8

Go back to the command-line interface (CLI) and


enter “php artisan vendor:publish --
provider="Maatwebsite\Excel\
ExcelServiceProvider" --tag=config”. This will
create a config/excel.php.

You are done!

You might also like