What seems to be the problem:
It seems like I can’t use computed properties on model:wire
Steps to Reproduce:
I’m using the documentation:
https://laravel-livewire.com/docs/computed-properties/
Are you using the latest version of Livewire:
Yes, Laravel 7.
Do you have any screenshots or code examples:
public function getHoraFormattedProperty()
{
return date('Y-m-d\TH:i:s', strtotime($this->hora));
}
<input wire:model.lazy="horaFormatted" type="datetime-local" placeholder="Hora...">
Using {{ $this->horaFormatted }} on the view works fine