#Textinput validate convert int to string
4 messages · Page 1 of 1 (latest)
4 messages · Page 1 of 1 (latest)
protected function handleRecordUpdate(Model $record, array $data): Model
{
dd($this->validate());
```php
When I do a dd($data) it returns the TextInput fields as int, but if I pass it $this->validate() it converts them to string?
maybe prefix it with (int) ?
What I don't understand is why $this->form->getState() validates the form and doesn't convert it to a string but $this->validate validates and converts it to a string.