This package provides a convenient way to export in Laravel Backpack CRUDs with Laravel Excel.
It provides a custom writer which allows to directly write on php://stdout
.
You can install the package via composer:
composer config repositories.laravel-backpack-export vcs https://github.com/jargoud/laravel-backpack-export.git
composer require jargoud/laravel-backpack-export
Use ExportOperation trait in your CRUD controller and implement the abstract method, for example:
protected function getExportClass(): UsersExport
{
return new UsersExport();
}
The export class can be generated with the following command:
php artisan make:export UsersExport --model=User
For further information about export classes, please referer to the package's documentation.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.