capturedPhoto = $photo; // Fires a browser event that the Filament form will listen to $this->dispatch('photo-captured', photo: $photo); } // Called from JavaScript when user clicks "Retake" public function clearPhoto(): void { $this->capturedPhoto = ''; $this->dispatch('photo-captured', photo: ''); } public function render() { return view('livewire.webcam'); } }