gozur / Laravel-Nova-Excel

πŸš€ Supercharged Excel exports for Laravel Nova Resources

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel Nova Excel

Laravel Nova Excel

πŸ’ͺ πŸ”₯ πŸš€

Supercharge your Laravel Nova resource exports

StyleCI Latest Stable Version Total Downloads License

  • Easily export resources to Excel. Supercharge your Nova resources and export them directly to an Excel or CSV document. Exporting has never been so easy.

  • Supercharged resource exports. Export resources with automatic chunking for better performance. You provide us the query, we handle the performance. Exporting even larger resources? No worries, Laravel Nova Excel has your back. You can queue your exports so all of this happens in the background.

  • Export based on filters and selection. Select or filter only certain resources and export only those to Excel!

  • Export lenses. Got custom lenses defined? When exporting from a lens, it will use the query of the lens to determine which data needs to be exported!

πŸš€ 5 minutes quick start

πŸ’‘ Require this package in the composer.json of your Laravel project. This will download the package and Laravel-Excel.

composer require maatwebsite/laravel-nova-excel

πŸ’ͺ Go to your resource. As example we'll use the app/Nova/User.php. Add DownloadExcel action to your actions() list.

<?php

namespace App\Nova;

use Illuminate\Http\Request;
use Maatwebsite\LaravelNovaExcel\Actions\DownloadExcel;

class User extends Resource
{
    /**
     * The model the resource corresponds to.
     *
     * @var string
     */
    public static $model = 'App\\User';
    
    // Other default resource methods
    
    /**
     * Get the actions available for the resource.
     *
     * @param  \Illuminate\Http\Request $request
     *
     * @return array
     */
    public function actions(Request $request)
    {
        return [
            new DownloadExcel,
        ];
    }
}

πŸ”₯ Go to your resource in your Nova admin panel, select all or some users and click "Download Excel"

Laravel-Nova-Excel

πŸ“„ Find your users.xlsx in your downloads folder!

More installation instructions can be found at: https://laravel-excel.maatwebsite.nl/nova/1.1/getting-started/installation.html

πŸŽ“ Learning Laravel Nova Excel

You can find the full documentation of Laravel Nova Excel on the website.

We welcome suggestions for improving our docs. The documentation repository can be found at https://github.com/Maatwebsite/laravel-excel-docs.

πŸ“¬ License & Postcardware

Our software is open source and licensed under the MIT license.

If you use the software in your production environment we would appreciate to receive a postcard of your hometown. Please send it to:

Maatwebsite
Florijnruwe 111-2
6218 CA Maastricht
The Netherlands

More about the license can be found at: https://laravel-excel.maatwebsite.nl/3.1/getting-started/license.html

About

πŸš€ Supercharged Excel exports for Laravel Nova Resources

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

License:MIT License


Languages

Language:PHP 100.0%