Skip to content

Export

We have introduced built-in export functionality using the popular Laravel Excel package.

php

use Maatwebsite\Excel\Facades\Excel;
use CodeCoz\AimAdmin\Exports\Export;

$view = view('pdf');
return Excel::download(new Export($view), "Test.xls", \Maatwebsite\Excel\Excel::XLS);

There are several export file options:

XLS

\Maatwebsite\Excel\Excel::XLS

CSV

\Maatwebsite\Excel\Excel::CSV

TSV

\Maatwebsite\Excel\Excel::TSV

ODS

\Maatwebsite\Excel\Excel::ODS

SLK

\Maatwebsite\Excel\Excel::SLK

XML

\Maatwebsite\Excel\Excel::XML

GNUMERIC

\Maatwebsite\Excel\Excel::GNUMERIC

HTML

\Maatwebsite\Excel\Excel::HTML

PDF

\Maatwebsite\Excel\Excel::TCPDF

This built-in export feature allows you to easily export data in various formats using the Laravel Excel package.

Developed By ❤️ Taki Elias