Laravel-excel: [BUG] php artisan vendor:publish not working

Created on 31 Aug 2017  路  2Comments  路  Source: Maatwebsite/Laravel-Excel

Please prefix your issue with one of the following: [BUG] [PROPOSAL] [QUESTION].

Package version, Laravel version

Maatwebsite: ^2.1, Laravel: 5.4.*

Expected behaviour

After running "php artisan vendor:publish ..." as stated in the documentation, I'm meant to have an excel.php config file in my app/config directory.

Actual behaviour

I don't see any excel.php files anywhere, except in the vendor directory.

I need to change my export.pdf.driver setting, and I don't think it'll be appropriate doing that from the vendor directory.

Pardon my typing, I'm using a mobile device to create this issue. I seriously need some help on steps I could take out of this problem.

Most helpful comment

OK.. You're right Patrick.. I solved this by running "php artisan config:cache" before "php artisan vendor:publish" could work.

Twas an oversight though.. Thanks for you tip, and it isn't at all a BUG..

All 2 comments

Tested it on a clean install:

php artisan vendor:publish
Copied Directory [/vendor/laravel/framework/src/Illuminate/Notifications/resources/views] To [/resources/views/vendor/notifications]
Copied Directory [/vendor/laravel/framework/src/Illuminate/Pagination/resources/views] To [/resources/views/vendor/pagination]
Copied File [/vendor/maatwebsite/excel/src/config/excel.php] To [/config/excel.php]
php artisan vendor:publish --provider="Maatwebsite\Excel\ExcelServiceProvider"
Copied File [/vendor/maatwebsite/excel/src/config/excel.php] To [/config/excel.php]

In both situations the excel.php file is copied for me. It's probably a problem with your setup.

OK.. You're right Patrick.. I solved this by running "php artisan config:cache" before "php artisan vendor:publish" could work.

Twas an oversight though.. Thanks for you tip, and it isn't at all a BUG..

Was this page helpful?
0 / 5 - 0 ratings