cpiber / puller
A laravel package for broadcasting events using long-polling
v1.1
2025-12-29 18:39 UTC
Replaces
- as247/puller: 1.0
This package is auto-updated.
Last update: 2026-03-29 01:14:06 UTC
README
A laravel package for broadcasting events using long-polling
Installation
php artisan install:broadcasting # do not install reverb, puller will be used instead
composer require as247/puller
php artisan migrate
npm i puller-js
Usage
1. Update broadcasting driver in .env file
BROADCAST_DRIVER=puller
2. Configure Echo
import Echo from 'laravel-echo' import Puller from 'puller-js' window.Echo = new Echo({ broadcaster: Puller.echoConnect, });
Troubleshooting
-
If Laravel does not pick up the
pullerdriver, add it to yourbootstrap/providers.php:<?php return [ App\Providers\AppServiceProvider::class, // ... your other service providers ... As247\Puller\PullerServiceProvider::class, ];
-
To publish the puller configuration as well as database migrations, run this command:
php artisan vendor:publish --provider "As247\Puller\PullerServiceProvider"