Skip to content

Instantly share code, notes, and snippets.

View rameezcubet's full-sized avatar
🎯
Focusing

rameez rami rameezcubet

🎯
Focusing
View GitHub Profile
@rameezcubet
rameezcubet / AppLayout.js
Created May 15, 2019 11:14 — forked from unr/AppLayout.js
Bare Minimum Laravel Echo in Nuxt.JS example.
// In my global app layout, once my app is mounted and ready to listen...
import { mapActions, mapGetters } from 'vuex';
const Layout = {
mounted() {
// set up pusher listeners
this.connectToPublicChannel();
this.$watch('authenticated', (auth) => {
if (auth) this.connectToUserChannel();