File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,29 @@ Use composer to download the package:
2121composer require cyber-duck/laravel-excel
2222```
2323
24- Register the service provider in ` config/app.php ` adding * Cyberduck\LaravelExcel\ExcelServiceProvider * to the provider array.
24+ ### Laravel 4.x
2525
26- Note. If you are on Laravel 4, use * Cyberduck\LaravelExcel\ExcelLegacyServiceProvider*
26+ Register the service provider in ` config/app.php ` by adding this line to providers array.
27+
28+ ``` php
29+ 'providers' => [
30+ Cyberduck\LaravelExcel\ExcelLegacyServiceProvider::class,
31+ ],
32+ ```
33+
34+ ### Laravel < 5.5
35+
36+ Register the service provider in ` config/app.php ` by adding this line to providers array.
37+
38+ ``` php
39+ 'providers' => [
40+ Cyberduck\LaravelExcel\ExcelServiceProvider::class,
41+ ],
42+ ```
43+
44+ ### Laravel 5.5
45+
46+ No need to register anything, since it used package auto discovery feature in Laravel 5.5.
2747
2848## Export Excel
2949
Original file line number Diff line number Diff line change 3636 " tests/utils/FirstColumnOnlySerialiser.php"
3737 ]
3838 },
39+ "extra" : {
40+ "laravel" : {
41+ "providers" : [
42+ " Cyberduck\\ LaravelExcel\\ ExcelServiceProvider"
43+ ]
44+ }
45+ },
3946 "minimum-stability" : " stable"
4047}
You can’t perform that action at this time.
0 commit comments