Skip to content

jargoud/laravel-backpack-export

Repository files navigation

Laravel Backpack Export

Latest Version on Packagist Build Status Quality Score Total Downloads

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.

Installation

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

Usage

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.

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

About

Convenient export for Laravel Backpack

Resources

License

Stars

Watchers

Forks

Packages

No packages published