Files
faveo/vendor/maatwebsite/excel/docs/getting-started/installation.md
Manish Verma 76e85db070 update 1.0.8.0
Commits for version update
2016-10-17 12:02:27 +05:30

584 B

#Installation

Require this package in your composer.json and update composer. This will download the package and PHPExcel of PHPOffice.

Laravel 4

"maatwebsite/excel": "~1.3"

Laravel 5

"maatwebsite/excel": "~2.1.0"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php

'Maatwebsite\Excel\ExcelServiceProvider',

You can use the facade for shorter code. Add this to your aliasses:

'Excel' => 'Maatwebsite\Excel\Facades\Excel',

The class is binded to the ioC as excel

$excel = App::make('excel');