MichaelMdp
MichaelMdp
FFilament
Created by MichaelMdp on 11/13/2023 in #❓┊help
Form relation fields of same relation in different groups/Fieldset
I can't figure out how to add fields from the same relation to different groups or Fieldsets. Only the last group seems to be linked to the relation. e.g.: ``` $form ->schema([ group::make() ->relationship('user') ->schema([ TextInput::make('name') ]), TextInput:make('some_field'), group::make() ->relationship('user') ->schema([ TextInput::make('email') ]) ])
11 replies
FFilament
Created by MichaelMdp on 10/6/2023 in #❓┊help
Defaultsort / column sorting
When I set a default sortorder on a table, it will sort 'asc' by default, when I click the row, the url is updated to sort 'asc'. I have to click it again to switch to 'desc'. Seems to be different behavior then v2, or am I missing something ?
8 replies
FFilament
Created by MichaelMdp on 9/26/2023 in #❓┊help
Form Select with options(MyEnum::class) and multiple() has livewire error when removing a value.
Error I am getting : "__rm__" is not a valid backing value for enum Setup is a basic enum that implements Filament\Support\Contracts\HasLabel. Cast to convert it to json in the DB. on the Resource:
Forms\Components\Select::make('roles')
->multiple()
->options(UserRoles::class)
,
Forms\Components\Select::make('roles')
->multiple()
->options(UserRoles::class)
,
Any clues, or am I just trying to do something weird and is there a better implementation ?
19 replies