jangili1
jangili1
TLCTuto's Laravel Corner
Created by jangili1 on 9/11/2023 in #💡filament
is there a way to mutate data on createOptionForm in Select input.
i want to attach the creator_id before saving the form instead of having the a readonly field. Forms\Components\Select::make('payment_method_id') ->label('Payment Method') ->relationship(name: 'paymentMethod', titleAttribute: 'name') ->required() ->createOptionForm([ Forms\Components\TextInput::make('name')->required(), Forms\Components\Textarea::make('description')->helperText('more about channel, eg bank acc nu')->required(), Forms\Components\TextInput::make('creator_id')->default(Auth::id())->readOnly(), ]),
8 replies