corean
corean
FFilament
Created by corean on 12/28/2023 in #❓┊help
relationship sorting in table
Tables\Columns\TextColumn::make('firstCategory.name')
->sortable(query: fn ($query, $direction) =>
$query->with('firstCategory')
->orderBy('firstCategory.order_column', $direction)
),
Tables\Columns\TextColumn::make('firstCategory.name')
->sortable(query: fn ($query, $direction) =>
$query->with('firstCategory')
->orderBy('firstCategory.order_column', $direction)
),
`SQLSTATE[42S22]: Column not found: 1054 Unknown column 'firstCategory.order_column' in 'order clause'`
`SQLSTATE[42S22]: Column not found: 1054 Unknown column 'firstCategory.order_column' in 'order clause'`
14 replies
FFilament
Created by corean on 12/7/2023 in #❓┊help
ImageColumn::class with url encode
There is an error where images uploaded to S3 using FileUpload::class are not displayed in the ImageColumn due to URL encoding issues not visible https://cdn.bizconnect.kr/products/6910ehgQwSNiaXRjSlHXTNVlFkqPGC-meta66+47Jet7KSE6riwLmpwZw==-.webp visible https://cdn.bizconnect.kr/products/6910ehgQwSNiaXRjSlHXTNVlFkqPGC-meta66%2B47Jet7KSE6riwLmpwZw%3D%3D-.webp
2 replies
FFilament
Created by corean on 12/5/2023 in #❓┊help
can I upload heic/heif upload like imageUpload
I want to upload heif/heic files using Filament's FileUpload or SpatieMediaLibraryFileUpload How can I support HEIF/HEIC in MIME types? Or, what about converting to JPG when uploading with Filepond?
4 replies