dzorogh/nova-card-data-update
Composer 安装命令:
composer require dzorogh/nova-card-data-update
包简介
A universal Laravel Nova card to update data with Excel file.
README 文档
README
Useful card for Laravel Nova, when you need data editing interface with a lot of mass update actions. In this situation, import/export to xlsx files is good option. This card provides two simple actions:
- Run excel export script and download file
- Upload file and run import file
Installation
composer require dzorogh/nova-card-excel-data-update
Also, you must have imports and exports from popular package Laravel Excel:
composer require maatwebsite/excel
More docs: https://docs.laravel-excel.com/3.1/getting-started/installation.html
Usage
It can be used everywhere in Laravel Nova where any other card can be used.
For example, in app/Nova/NovaServiceProvider.php to show card at dashboard:
use Dzorogh\ExcelDataUpdate\ExcelDataUpdate; /** * Get the cards that should be displayed on the default Nova dashboard. * * @return array */ protected function cards() { return [ new ExcelDataUpdate(new ExportClass, new ImportClass) ]; }
ExportClass and ImportClass are described here: https://docs.laravel-excel.com/
Todo
- English translation
- Uploading results
- Percents on upload and edit
- Instructions how to use with queues
- Export/Import errors
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-02-17
