By @samuel · 5 days ago
$this->__user? Is that a Livewire thing?
No, it's just to distinguish the value from properties, in case both a property and a method with that name existed.
You can create runtime properties in Livewire, and they won't be included in the frontend data.
That said, the post has a slight issue. The
??= doesn't work since Livewire overrides
isset($this->__user) ? $this->user : ... should be used.
I'll be editing the post later today to fix this + mention some additional improvements.