Exporting
On the export page you can do some XLS or CSV exports from the database. There are 3 types of exports you can do - model, e-mail export of all users and custom (which is really your own custom export function). You can add new export cases in the exportables
array in config/hotcoffee.php
.
Say you want to export all the products.
Sometimes you may need to alter the collection before exporting. You can use the type custom to create your own custom export case.
Next open app\Http\Controllers\Admin\CustomExportController.php
and add your case in the collection()
method:
Exporting is possible thanks to the Maatwebsite/Laravel-Excel. You can find the full documentation here.
Last updated