devinfd / laravel-excel-docs

Laravel Excel Docs

Home Page:https://laravel-excel.maatwebsite.nl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

home heroImage actionText actionLink features footer
true
/assets/img/logo-small.png
Read documentation β†’
/3.0/
title details
πŸ’ͺ Export collections to Excel.
Supercharge your Laravel collections and export them directly to an Excel or CSV document. Exporting has never been so easy.
title details
πŸš€ Supercharged exports.
Export queries with automatic chunking for better performance. For even more superpowers, exports can also be queued.
title details
πŸ”₯ Export Blade views.
Want to have a custom layout in your spreadsheet? Use a HTML table in a Blade view and export that to Excel.
MIT Licensed | Powered by Maatwebsite

πŸ’‘ Install the package via composer

composer require maatwebsite/excel

πŸ’ͺ Create an export class

php artisan make:export UsersExport --model=App\\User

πŸ”₯ Download your export

<?php 

use App\UsersExport;
use Maatwebsite\Excel\Facades\Excel;
use App\Http\Controllers\Controller;

class UsersController extends Controller 
{
    public function export() 
    {
        return Excel::download(new UsersExport, 'users.xlsx');
    }
}

About

Laravel Excel Docs

https://laravel-excel.maatwebsite.nl/


Languages

Language:JavaScript 92.0%Language:CSS 8.0%