HOW TO STORE GENDER VALUE IN DATABASE ??

in migration i use the default gender male and when i try to create a new user always take male such as i select female
Forms\Components\Radio::make('Gender')
->options([
'male' => 'male',
'female' => 'female'
])
->required(),
Forms\Components\Radio::make('Gender')
->options([
'male' => 'male',
'female' => 'female'
])
->required(),
4 Replies
Joey .
Joey .16mo ago
Why not use Select
yassions101
yassions101OP16mo ago
i have only two option there is no meaning to use select
Joey .
Joey .16mo ago
Ok
Dennis Koch
Dennis Koch16mo ago
Is the field added to the fillable fields of your model?

Did you find this page helpful?