-
-
Save ammezie/d8d9678b923f2cec841e5563988c4b6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resources/js/ChatRoom.vue | |
// inside the script section | |
leaveChannel() { | |
axios.post("/api/leave-channel", { | |
username: this.username, | |
}); | |
window.location.href = '/dashboard'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment