DatePicker is not saving the data in an Action
I am doing an action, this is an a part of it
Action::make('assign_accounts')
->label('Asignar cuentas')
->action(function (Stock $record, array $data): void {
dd($data);
})
->form([
DatePicker::make('due_date_client_1')
->label('Fecha de vencimiento')
->placeholder('Disponible'), ]);
When I save some date in the due_date_client_1 in the dd() shows me this, how can I solve this? this error is not happening with TextInput or Select2 Replies
Remember to set the fillable in the model? protected $fillable = ['due_date_client_1'];
In this case, that column does not exist in the table, because it needs to be saved in a pivot table
But maybe that is the issue
But the thing is that with a textInput with any name retrieve me the value
solved, It was my error with something