I am having a rough time trying to install the Laravel Excel (http://www.maatwebsite.nl/laravel-excel/docs) package to my Laravel 5. Here's what I've done so far:
"maatwebsite/excel": "2.*"
to my require, composer update
finishes just fine and I have all the package files'Maatwebsite\Excel\ExcelServiceProvider',
to providers array'Excel' => 'Maatwebsite\Excel\Facades\Excel',
to aliases arrayHere's the problem - when I try running php artisan vendor:publish
, it tells me Nothing to publish for tag [].
When I use php artisan tinker
and run $excel = App::make('excel')
, it tells me ReflectionException with message 'Class excel does not exist'
.
What am I doing wrong?
I was facing the same problem and came to this question but there wasn't any clear solution. So I keep searching and found a simple solution.
The problem is related with the cached config file. So for Laravel 5.1, just clear the cache
php artisan config:cache
and it worked perfectly in my case. Source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With