camya/filament-import-inline
Resource\PostResource) where inline CSV/JSON imports replace manual entry or separate import pages.TextInput) with ImportInlineInput for JSON/CSV.use Camya\FilamentImportInline\ImportInlineInput;
ImportInlineInput::make('data')
->jsonString()
->validateWith([
'data.*' => 'required|array',
'data.*.title' => 'string|max:255',
]);
Camya\FilamentImportInline\Importers\Importer.class XmlImporter extends Importer {
public function import(string $string): array {
// Parse XML logic
}
}
ImportInlineInput for low-risk fields.wire:debug can help trace paste/event issues.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Malformed JSON/CSV paste | Form validation errors, UX friction | Robust server-side validation + user guidance. |
| Large paste (e.g., 100K rows) | Browser freeze, server timeout | Client-side chunking or queue-based processing. |
| Filament/Livewire update | Package breaks | Fork and maintain; test against new versions. |
| Custom importer bugs | Data corruption | Unit tests for importer logic. |
| Browser paste event conflicts | Unpredictable behavior | Test in target browsers; add fallback UX. |
How can I help you explore Laravel packages today?