Imi
Method Konnco\FilamentImport\Actions\ImportAction::table does not exist
Can anybody help me with an answer please? It's simple 😃 . It works only on Admin Panel if you extend the ListRecords class OR i can use it outside on other Livewire pages?
11 replies
Method Konnco\FilamentImport\Actions\ImportAction::table does not exist
I see this issue doesn't have a solution yet. I want to reopen this, because i have the same issue. My code looks like this:
public function table(Table $table): Table
{
return $table
->query(Company::query())
->columns([
Tables\Columns\TextColumn::make('name')
->searchable(),
Tables\Columns\TextColumn::make('address')
->searchable(),
Tables\Columns\TextColumn::make('email')
->searchable(),
Tables\Columns\TextColumn::make('city')
->searchable(),
])
->actions([
Tables\Actions\EditAction::make()
->form( $this->buildForm() ),
Tables\Actions\ViewAction::make()
->infolist([
Infolists\Components\TextEntry::make('name'),
Infolists\Components\TextEntry::make('address'),
Infolists\Components\TextEntry::make('email'),
Infolists\Components\TextEntry::make('city'),
]),
])
->headerActions([
Tables\Actions\CreateAction::make()
->form( $this->buildForm() ),
Actions\Tables\ExportAction::make(),
ImportAction::make()
->fields([
ImportField::make('name')
->label('Name')
]),
]);
}
11 replies