Products Import/Export #1025
glennjacobs
started this conversation in
Feature Requests
Replies: 2 comments 3 replies
-
Is this an available feature? |
Beta Was this translation helpful? Give feedback.
2 replies
-
@de-raaf-media That's very simple to create an export on 1.x version with Filament panel. Follow up the documentation 1.x : https://docs-v1.lunarphp.io/admin/extending/pages.html Extend resource list with headerActions and configure Filament's exports batches : https://filamentphp.com/docs/3.x/actions/prebuilt-actions/export: public function headerActions(array $actions): array
{
$actions = [
...$actions,
Actions\ExportAction::make()
->label(__('admin.actions.export.product.label'))
->exporter(ProductExporter::class)
->fileDisk(config('filesystems.default')),
Actions\ImportAction::make()
->label(__('admin.actions.import.stock.label'))
->importer(ProductStocksImporter::class),
];
return $actions;
} It's magic, now you have an export button ;-) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions