KingNii
Getting an error trying to use the table builder
I get this error after adding implements HasTable to my class. I have already added InteractsWithTable and the table method. Know that I have already built multiple tables within the application and I’m now facing this bug. HELP!!!
Class App\Livewire\V1\Admin\Delivery\DeliveryIndex contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Filament\Tables\Contracts\HasTable::makeFilamentTranslatableContentDriver)
5 replies
Can I get come help with this error?
Class App\Livewire\V1\Admin\Delivery\DeliveryIndex contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Filament\Tables\Contracts\HasTable::makeFilamentTranslatableContentDriver)
3 replies
How can I get data from the form in actions?
Action::make('edit')
// ->requiresConfirmation()
->form([
TextInput::make('name'),
TextInput::make('price'),
TextInput::make('slug'),
// TextInput::make('category'),
Select::make('category')
->label('Category')
->options(Products::all()->pluck('name', 'id'))
->searchable(),
TextInput::make('description'),
FileUpload::make('image_url'),
])
->fillForm(fn (Products $record): array => [
'name' => $record->name,
'price' => $record->price,
'slug' => $record->slug,
'category' => $record->category->id,
'description' => $record->description,
])
->action(function (Products $record): void {
// dd($record);
dd($this->form->getState());
$record->update($this->form->getState());
// $record->approve();
})
4 replies
ImageColumn not displaying in Table builder
I created a listing data with an image and I'm using the Table builder to create a table for my listing. The problem is that all other data columns are displaying except for the image. When I output the image without the Table builder by using Storage::URL($image), the image display but when I use the ImageColumn::make('image'), the image is displayed. This is how I saved the image FileUpload::make('image')
->image()
->preserveFilenames()
->directory('listing')
->hint('Main Image')
->columnSpan('full')
->required(),
11 replies