synapseService = $synapseService; } public function mount() { $this->fetchTokens(); } public function fetchTokens() { $this->tokens = $this->synapseService->fetchTokens(); } public function revokeToken(string $token) { if ($this->synapseService->revokeToken($token)) { $this->fetchTokens(); } } public function createToken() { $this->registrationToken = $this->synapseService->createRegistrationToken(); // Open modal $this->modal('registration-token')->show(); } public function resetToken() { $this->registrationToken = null; $this->fetchTokens(); } public function render() { return view('livewire.registration-token'); } }