Mirnes
searching in description
This was working fine in v2 but in v3 I get error
Tables\Columns\TextColumn::make('VariantProduct.product_name')
->label('Proizvod / Kategorija')
->description(fn ($record): string => $record->VariantCategory->category_name ?? '')
->searchable(['product_name', 'category_name'])
->weight(FontWeight::Medium),
Error: Column not found: 1054 Unknown column 'category_name' in 'where clause'
3 replies
Avatar not showing
I followed documentation https://filamentphp.com/docs/3.x/panels/users#setting-up-user-avatars but avatars are not showing. I checked page source and here is avatar part: <div style="background-image: url('images/userimages/pFP5jSAR4X2xvIjsSdky6YM1JAfTR9-metaTWlybmVzLmpwZw==-.jpg');"
2 replies
How to use Split Component
Tried like this:
return $table
->schema([
Split::make([
ImageColumn::make('avatar'),
TextColumn::make('name'),
TextColumn::make('email'),
])
])...
But got error:
Call to undefined method Filament\Resources\Table::schema()
22 replies
Showing table in a Livewire's component view
I'm trying to show filament table in livewire view following documentation: https://filamentphp.com/docs/2.x/tables/getting-started#preparing-your-livewire-component but I get error Using $this when not in object context
4 replies