where('tokenable_type', Auth::user()::class) ->findOrFail($tokenId); $this->tokenName = $token->name; $this->scopes = $token->abilities; } public function render() { return view('livewire.ui.system.modal.api-key-scopes-modal'); } }