emiliogrv / nova-batch-load
A Laravel Nova XLS & CSV importer
Installs: 41 357
Dependents: 0
Suggesters: 0
Security: 0
Stars: 16
Watchers: 2
Forks: 4
Open Issues: 15
Language:Vue
Requires
- php: >=7.1.0
- dev-master
- 1.2.4
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.0
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/xlsx-0.17.0
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.7
- dev-dependabot/npm_and_yarn/http-proxy-1.18.1
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
This package is auto-updated.
Last update: 2024-10-26 20:58:48 UTC
README
Description
This Package allow you to create many new entries at once, loading a file from creating resource screen.
Validation, fields and creating events are same that you declared into yours Resource's fields function.
Install
composer require emiliogrv/nova-batch-load
Usage
// in your Nova's Resources // ... use Emiliogrv\NovaBatchLoad\BatchLoadField; // ... public function fields(Request $request) { return [ // ... BatchLoadField::make() ->accept('.xlsx') // Optional ->defaultTabActive(1) // Optional ->ignoreAttributes('some_attribute_name') // Optional ->keepOriginalFields('belongs|select|boolean'), // Optional // ... ]; }
i18n
To translate add this to your resources/lang/vendor/nova/xx.json
"File empty!": "Archivo vacío", "Load per file": "Carga por archivo", "Manual loading": "Carga manual", "Upload file": "Subir archivo", "Upload file & Add Another": "Subir archivo y Añadir Otro"
API
Screenshots
Contributing
Thank you for considering contributing! Please leave your PR or issue.