artsites/nova-excel-helper

A Laravel Nova tool.

0.2.1 2022-04-13 12:09 UTC

This package is auto-updated.

Last update: 2024-04-07 17:32:06 UTC


README

Laravel Nova tool to export and import database to Excel file

Installation

composer require artsites/nova-excel-helper

Include tool in NovaServiceProvider

use Artsites\NovaExcelHelper\NovaExcelHelper;

public function tools(){
    return [
        new NovaExcelHelper
    ];
}

Publish config file

php artisan vendor:publish --provider="Artsites\NovaExcelHelper\ToolServiceProvider" --tag="config"

In the configuration file, write which models you will import and export in key-value format

// example
'classes' => [
    '\App\User' => 'User',
    '\App\News' => 'News',
],
Localization
"Nova Excel Helper": "Nova Excel Helper",
"Select resource": "Select resource",
"Pleace, select resource": "Pleace, select resource",
"Import": "Import",
"Select File": "Select File",
"Load only Excel file": "Load only Excel file",
"Export": "Export",
"Pleace, select file": "Pleace, select file",
"Success": "Success"