#Textinput validate convert int to string

4 messages · Page 1 of 1 (latest)

raven sleet
#
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?
mortal pebbleBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

gusty hinge
#

maybe prefix it with (int) ?

raven sleet
#

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.