F
Filamentβ€’8mo ago
Wazza

ImportAction Custom Page

Hey friends, I am having a little issue using Importer on a custom page
class Developer extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.developer';

public function importProductSuppliersAction()
{
return \Filament\Actions\ImportAction::make()
->label('Sync Products And Suppliers')
->importer(ProductSuppliersImporter::class);
}
class Developer extends Page
{
protected static ?string $navigationIcon = 'heroicon-o-document-text';

protected static string $view = 'filament.pages.developer';

public function importProductSuppliersAction()
{
return \Filament\Actions\ImportAction::make()
->label('Sync Products And Suppliers')
->importer(ProductSuppliersImporter::class);
}
In my blade file, I have
<x-filament::section>
<x-slot name="heading">
Import CSV's Section
</x-slot>
<div>
{{ $this->importProductSuppliersAction }}
</div>
</x-filament::section>
<x-filament::section>
<x-slot name="heading">
Import CSV's Section
</x-slot>
<div>
{{ $this->importProductSuppliersAction }}
</div>
</x-filament::section>
And it does not trigger the import not sure if I've done something very wrong here 😭
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server