F
Filament2mo ago
Sidem

Select does not record the data

Hi, I am currently creating a Wizard. My problem is that when I select a piece of data inside the select and I click on the next step of my Wizard, the select returns me an error telling me that no data has been selected. Do you have an idea ? Here is my code :
Select::make('type_projet')
->multiple()
->relationship('type_projet', 'name')
->searchable()
->preload()
->required()
->default([157])
->columnSpan(2),
Select::make('type_projet')
->multiple()
->relationship('type_projet', 'name')
->searchable()
->preload()
->required()
->default([157])
->columnSpan(2),
2 Replies
awcodes
awcodes2mo ago
Why is it disabled?
Sidem
Sidem2mo ago
I just wanted to test the field I moved forward and saw that it appears in the logs when I delete all the caches, I restart the application and displaying not $data but $request()->all() for information I customized the way I create my objects so I have a create method in my model which currently takes care of:
public static function create($data){
Log::debug('Data received in request:', request()->all());
dd($data);
}
public static function create($data){
Log::debug('Data received in request:', request()->all());
dd($data);
}
Want results from more Discord servers?
Add your server
More Posts