loading_personality
loading_personality
FFilament
Created by loading_personality on 11/6/2024 in #❓┊help
Custom Field: Using Form Components
As the title says, i want make use of filament components like a select, inside my custom filament field, how can i achieve that? i tried using HasForm Contract , and InteractsWithForm but it wasn't successful. any suggestions?
7 replies
FFilament
Created by loading_personality on 10/27/2024 in #❓┊help
Help with dependable select
I've a dependable select 'province' that depends on the select 'country', both of the inputs are nested within a repeater. the problem is with the province select, as you can see in the code, if i set the fallback return value for options to
`['' => '']
`['' => '']
` it works as expected (but it leave an extra padding space under the placeholder) but if i simply return an empty array, the select wouldn't react or change when i change the country, can anyone explain please? here's the code; ```php Select::make('country_id') ->label('Pays') ->options(CoreCountry::pluck('name', 'id')) ->native(false) ->searchable() ->live() ->afterStateUpdated(function ($get, $set, $livewire) { $set('province_id', null); }), Select::make('province_id') ->label('Province') ->options(function ($get) { $country_id = $get('country_id'); if ($country_id) { return CoreProvince::where('country_id', $country_id)->pluck('name', 'id'); } else { return ['' => '']; } }) ->searchable(),
3 replies
FFilament
Created by loading_personality on 5/26/2023 in #❓┊help
Can i put a relation manager in a tab
I'm really new to filament, and i just want to confirm if it's possible to put a relation manager in a tab, instead of it being at the bottom
4 replies
FFilament
Created by loading_personality on 3/4/2023 in #❓┊help
Translatable field
The resource has a "name" field that is translatable (using spatie laravel-translatable), any way i could fill the different translations for that field?
2 replies
FFilament
Created by loading_personality on 3/3/2023 in #❓┊help
Table relationship eagerLoading
I'm accessing the relationship to display the mobile phone in certain format, would this be a N+1 problem, and if it is, how would i eager load my relationships before using em in tables
3 replies
FFilament
Created by loading_personality on 3/3/2023 in #❓┊help
Where to receive the repeater data
2 replies
FFilament
Created by loading_personality on 3/3/2023 in #❓┊help
How to get other repeaters items
I have a repeater item containing a Toggle, i want only one toggle in the repeater item list to be active at a time, so if the user checks a toggle i want to use *afterStateUpdated *and set all the other toggle in the repeater to false, i tried to use the $get Closure but i don't know what to put in the selector since the $get of a repeater is relative to the item itself, i'm new to Filament, any help would be appreciated.
4 replies