Unfortunately cant just use wire:click since this is within javascript, so im forced to use a Livewire:emit and then my listener looks like so
public function showProperty($propertyId) { // ViewPropertyAction::class ray($propertyId); $property = Property::find($propertyId); return $this->mountAction('view_property') ->record($property); }
public function showProperty($propertyId) { // ViewPropertyAction::class ray($propertyId); $property = Property::find($propertyId); return $this->mountAction('view_property') ->record($property); }
. Now the problem is that the action isnt actually used anywhere on the page, which i think is part of the problem. I know its not as simple as returning my actual action with the record as that doesnt actually execute it. I think im close. But missing something simple.