Skip to content

Instantly share code, notes, and snippets.

@ammezie ammezie/ChatRoom.vue Secret
Created Nov 13, 2019

What would you like to do?
// resources/js/ChatRoom.vue
// inside the script section
leaveChannel() {"/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
You can’t perform that action at this time.