Websockets in Laravel – Part 1: Configuring Laravel for Websockets



Websockets in Laravel – Part 1: Configuring Laravel for Websockets

Websockets in Laravel - Part 1: Configuring Laravel for Websockets

The goal today is to clone our repository for the demo project so you can easily follow along throughout this series on Laravel Echo. Once we setup the demo project we will also explore how to configure a laravel project to get it ready to start using websockets and Laravel echo.

Skip to 11:31 if you are not interested in the demo project setup.

This will show you which packages to install, and what configuration is needed in our javascript files, service providers, etc to prepare the application to broadcast events.

Throughout this tutorial series we will be using Pusher.com to get started with Websockets. There are many other platforms and services out there that work similar and you are more than welcome to give them a try. I selected Pusher for the tutorial because it is very easy to use and has an awesome “developer console” that lets you actually see what events are coming through the socket server. This makes development and learning easier. Plus it has a generous free tier, meaning you can learn how to use websockets without needing to pay anything or be at risk of paying anything.

==== WRITTEN TUTORIALS ====

“Mastering Websockets in Laravel” Master Series Page:
https://devmarketer.io/learn/laravel-echo-tutorial-websockets/

Part 1: Configuring Laravel For Websockets (Written Tutorial)
https://devmarketer.io/learn/part-1-setting-up-our-laravel-echo-project

==== MORE FROM THIS SERIES . ====

Full Playlist for the “Mastering Websockets in Laravel” Series:
https://www.youtube.com/playlist?list=PLwAKR305CRO9rlj-U9oOi4m2sQaWN6XA8

==== DOWNLOAD SOURCE CODE ====

Code for Project Start Phase:
https://github.com/DevMarketer/Laravel_Echo_Tutorial/releases/tag/start

Github Code Repo for this Series:
https://github.com/DevMarketer/Laravel_Echo_Tutorial

==== FOLLOW ME ====

Subscribe for New Releases!

Subscribe to DevMarketer Insider (Email)
https://confirmsubscription.com/h/d/5EDC91CF554832D1

Twitter – http://twitter.com/_jacurtis
(ask me questions!)

==== QUESTIONS? ====

Leave a comment below and I or someone else can help you.
For quick questions you may also want to ask me on Twitter, I respond almost immediately.

Email me [email protected]

Thanks for all your support!

Comments are closed.