tomcastillo's avatar

tomcastillo wrote a reply+100 XP

1mo ago

Hello @ geometry dash 3d, In Livewire 4 (SFC) you cannot use $this inside the Blade.

If your component has:

public int $countTotal = 0;

Then in the Blade you must use:

{{ $countTotal }}

❌ Not:

{{ $this->countTotal }}

Blade automatically receives public properties as variables.

tomcastillo's avatar

tomcastillo wrote a reply+100 XP

1mo ago

Thanks for your suggestion. This is what I'm looking for.