Mike.
Mike.
FFilament
Created by Mike. on 10/8/2024 in #❓┊help
How to disabled select in form
i have this code Select::make('status') ->label('Status') ->required() ->options(collect(InvitationStatus::getValues()) ->filter() ->mapWithKeys(fn ($value) => [$value => ucfirst($value)]) ->toArray() ) ->default(InvitationStatus::PENDING->value) ->afterStateHydrated(fn ($set, $state) => $state ?: $set(InvitationStatus::PENDING->value)), but i want to select this disabled,when i try to add '->disabled()' it gets error "General error: 1364 Field 'status' doesn't have a default value" can someone help me
4 replies
FFilament
Created by Mike. on 7/16/2024 in #❓┊help
Send Email
No description
10 replies