SLy
SLy
FFilament
Created by HardFist on 2/27/2024 in #❓┊help
I have problem when upload it to Share Hosting
It can work if having ssh terminal available. Your problem might be because of .htaccess, can you acces via /public/admin?
19 replies
FFilament
Created by Trauma Zombie on 2/16/2024 in #❓┊help
Is it possible to make searchable column on relation?
use something like: ->searchable(query: function (Builder $query, string $search): Builder { return $query ->whereRelation('relatedModel', 'name', 'like', '%' . $search . '%'); }),
3 replies
FFilament
Created by SLy on 10/13/2023 in #❓┊help
Spatie Translatable relation manager locale
Use use CreateRecord\Concerns\Translatable and EditRecord\Concerns\Translatable traits.
5 replies
FFilament
Created by daar on 1/11/2024 in #❓┊help
Resize image in SpatieMediaLibraryFileUpload
Not optimal, but you can a write model trait that cleans the root files on save.
10 replies
FFilament
Created by SLy on 1/9/2024 in #❓┊help
How can I get current active form tab in a EditResource page?
Thank you, not exactly same use case, but inspired to use this to get the tab inside redirect url method: protected function getRedirectUrl(): ?string { $queryString = parse_url(request()->server('HTTP_REFERER'))['query'] ?? null; if ($queryString) { parse_str($queryString ?? '', $queryParams); $tab = $queryParams['tab']; } if ($tab == '-services-tab') { return $this->getResource()::getUrl('edit', ['record' => $this->record, 'tab' => '-services-tab']); } return null; }
4 replies
FFilament
Created by Matt on 12/8/2023 in #❓┊help
Refresh repeater items after save form
Have same problem.
20 replies
FFilament
Created by RobinDev on 11/8/2023 in #❓┊help
Repeater relationship translation not working
I tried also ->formatStateUsing(fn ($record): string => $record->translate('name', $form->getLivewire()->activeLocale)), but the activelocale does not get refreshed on locale switch, have no idea why
4 replies
FFilament
Created by RobinDev on 11/8/2023 in #❓┊help
Repeater relationship translation not working
@RobinDev Had same issue, you find a solution to this repeater problem not being translated?
4 replies
FFilament
Created by core on 12/21/2023 in #❓┊help
How to use Table sortable() with Translatable?
Try something like: ->sortable(query: fn (Builder $query, string $direction): Builder => $query->orderBy( Model::select('name->' . $table->getLivewire()->activeLocale), $direction, )),
3 replies
FFilament
Created by Exi on 10/31/2023 in #❓┊help
Issues with Filament Spatie Tags and Multilingual Support
Have same issue.
8 replies
FFilament
Created by SLy on 10/15/2023 in #❓┊help
View title of a modal infolist
Yes, I was looking in wrong place, no sure how I missed that, was an easy one. Thank you!
6 replies
FFilament
Created by SLy on 10/15/2023 in #❓┊help
View title of a modal infolist
Where would I use that inside the infolist? There is no Filament\Infolists\Infolist::modalHeading method.
6 replies
FFilament
Created by SLy on 10/15/2023 in #❓┊help
View title of a modal infolist
Nobody knows this? Seems quite a common situation.
6 replies
FFilament
Created by SLy on 10/31/2023 in #❓┊help
Faded inactive action links based on Policy
I thought might be some default filament way to do it, like some method/parameter that has this default behavior without adding dummy links. Will do that, thank you!
7 replies
FFilament
Created by SLy on 10/31/2023 in #❓┊help
Faded inactive action links based on Policy
Problem is the link does not show at all if the Policy does not authorize it. So if I have an DeleteAction but the Model Policy returns false because the model has some relations, the Delete button does not show at all and I would like to show the Delete button as disabled.
7 replies
FFilament
Created by kwenziwa on 10/31/2023 in #❓┊help
Laravel Filament "/admin" 404 not found error (Live server)
Does using /public/admin work?
4 replies
FFilament
Created by richeklein on 4/24/2023 in #❓┊help
Managing custom properties with Spatie Media Library plugin
How to achieve this inside a multiple upload like: Forms\Components\SpatieMediaLibraryFileUpload::make('image') ->collection('gallery') ->imageEditor() ->multiple() ->image() ->downloadable() ->reorderable() I want to add a custom text field next to each image.
14 replies
FFilament
Created by SLy on 10/14/2023 in #❓┊help
money() format on Infolist
Thanks, I tried, but if I use numeric, the money format is overwritten so it shows without currency. I know I can use formatStateUsing, but I thought might be some more elegant default variant so I avoid using it on each money display. But is probably only option.
4 replies
FFilament
Created by Stevee on 8/25/2023 in #❓┊help
Filament Spatie Translatable Plugin for relation model
Still no luck, thanks anyway.
10 replies
FFilament
Created by Stevee on 8/25/2023 in #❓┊help
Filament Spatie Translatable Plugin for relation model
@MohamedSabil83 For me this still does not work, I had to use the $livewire component to get activeLocale: Forms\Components\Select::make('service_id') ->label('Service type') ->translateLabel() ->relationship( 'service', 'name', ) //->getOptionLabelFromRecordUsing(fn (Service $service) => $service->name) //This does not work ->getOptionLabelFromRecordUsing(fn (Service $service, Livewire $livewire) => $service->getTranslation('name', $livewire->activeLocale)) // This works ->columnSpan(2) ->live() ->preload() ->required(),
10 replies