تعرّف علي أفضل بوابات الدفع الالكتروني في المملكة السعودية
This article explains how to set up Laravel real-time events on Windows using a local development environment.
By the end, you will be able to broadcast events from Laravel and listen to them in real time on localhost.
Open PowerShell as Administrator and run:
wsl --install
Restart if required and verify installation:
wsl -l -v
sudo apt update && sudo apt upgrade -y
sudo apt install redis-server -y
sudo service redis-server start
redis-cli ping
Redis will be available on 127.0.0.1:6379.
Install Redis PHP extension:
sudo apt install php-redis -y
Enable broadcasting:
php artisan install:broadcasting
laravel-echo-server start
Using WSL, Redis, and Laravel Echo Server allows you to run real-time Laravel events locally on Windows with a production-like setup.