Browse Source

tweaking default setup

Taylor Otwell 7 years ago
parent
commit
655dbadd1e
2 changed files with 17 additions and 0 deletions
  1. 4 0
      .env.example
  2. 13 0
      resources/assets/js/bootstrap.js

+ 4 - 0
.env.example

@@ -25,3 +25,7 @@ MAIL_PORT=2525
 MAIL_USERNAME=null
 MAIL_PASSWORD=null
 MAIL_ENCRYPTION=null
+
+PUSHER_KEY=
+PUSHER_SECRET=
+PUSHER_APP_ID=

+ 13 - 0
resources/assets/js/bootstrap.js

@@ -30,3 +30,16 @@ Vue.http.interceptors.push(function (request, next) {
 
     next();
 });
+
+/**
+ * Echo exposes an expressive API for subscribing to channels and listening
+ * for events that are broadcast by Laravel. Echo and event broadcasting
+ * allows your team to easily build robust real-time web applications.
+ */
+
+// import Echo from "laravel-echo"
+
+// window.Echo = new Echo({
+//     connector: 'pusher',
+//     key: 'your-pusher-key'
+// });