hoagmah/backpackexport

v1.0 2019-02-18 10:35 UTC

This package is auto-updated.

Last update: 2024-10-19 14:28:13 UTC


README

Latest Version on Packagist Total Downloads Build Status StyleCI

This is where your description should go. Take a look at contributing.md to see a to do list.

Requires

  1. https://github.com/barryvdh/laravel-dompdf
  2. https://github.com/Maatwebsite/Laravel-Excel

Installation

Via Composer

$ composer require hoagmah/backpackexport

Setup

$ php artisan vendor:publish --provider=HoagMah\\BackpackExport\\BackpackExportServiceProvider

Usage

Each crud controller in Laravel backpack:

  1. Extends HoagMah\BackpackExport\Http\Controllers\CrudController instead of Backpack\CRUD\app\Http\Controllers\CrudController
  2. Use trait HoagMah\Traits\Export in curd controller
  3. Add button export_excel and export_pdf in list
  4. Add route /export-excel to action exportExcel() and /export-pdf to exportPdf() in custom.php

Change log

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see contributing.md for details and a todolist.

Security

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

Credits

License

license. Please see the license file for more information.