Laravel Websockets is a Laravel package that can handle the server side of WebSockets, written in PHP.

With it, we don't have to use Pusher or laravel-echo-server anymore. It has extensive documentation and a demo application you can play with.

laravel websocket

We can use this package to build real-time features, such as: notifications, chat, etc.

Features

Drop-in Pusher replacement

SSL support

Laravel Echo support

The package also comes with a dashboard, which we can use to monitor concurrent connections and events.

laravel websocket dashboard

Introduction

https://murze.be/introducing-laravel-websockets-an-easy-to-use-websocket-server-implemented-in-php/?utm_source=learninglaravel

Source Code

https://github.com/beyondcode/laravel-websockets/?utm_source=learninglaravel

Documentation

https://docs.beyondco.de/laravel-websockets/?utm_source=learninglaravel