Search code examples
laravelmapboxlaravel-livewire

Why @this cannot work in my laravel-livewire(mapbox)?


I try to get the long and lat data from the class, but this "@this" is not working enter image description here

This is the class: enter image description here

This is the error: enter image description here

I'm new in livewire and Json. Your help is a gold for me.


Solution

  • First: You can apply @this on the livewire blade file only Your Error Path: vpet\resouces\views\customer\location.blade.php (This will definitely give an error)

    According to your class right path is: vpet\resouces\views\livewire\map-location.blade.php