1. Go to this page and download the library: Download am2studio/laravel-exporter library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
am2studio / laravel-exporter example snippets
/**
* Class UserController
* @package App\Http\Controllers\Backend\Admin
*/
class UserController extends Controller
{
use \AM2Studio\Laravel\Exporter\Exporter;
First parameter in \Illuminate\Pagination\LengthAwarePaginator
Second parameter is array with attribute name in db and title in export
Rest parameters are
title for document
filename for document
format for document (xsl,pdf etc.)
document creator
document company
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.