laravel-reverb
Implement real-time WebSocket communication with Laravel Reverb. Use when adding live updates, chat, notifications, or presence features.
от Fusengine★ 36 звёзд на GitHub
Установить laravel-reverb в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Laravel Reverb
Agent Workflow (MANDATORY)
Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:
- fuse-ai-pilot:explore-codebase - Analyze existing broadcasting patterns
- fuse-ai-pilot:research-expert - Verify Reverb docs via Context7
- mcp__context7__query-docs - Check WebSocket and event patterns
After implementation, run fuse-ai-pilot:sniper for validation.
Overview
| Component | Purpose |
|---|---|
| Reverb Server | First-party WebSocket server for Laravel |
| Broadcasting | Send events from server to client |
| Channels | Public, private, presence scoping |
| Echo | Client-side event listener |
Decision Guide
Need real-time?
├── Live notifications → Reverb + private channel
├── Chat / messaging → Reverb + presence channel
├── Live dashboard → Reverb + public channel
├── Collaborative editing → Reverb + whisper
└── Background tasks → NOT Reverb (use Queues)
Quick Setup
php artisan install:broadcasting
BROADCAST_CONNECTION=reverb
REVERB_APP_ID=my-app
REVERB_APP_KEY=my-key
REVERB_APP_SECRET=my-secret
REVERB_HOST=0.0.0.0
REVERB_PORT=8080
Critical Rules
- Use private channels for authenticated data
- Authorize channels in
routes/channels.php - Use ShouldBroadcast for queued delivery (recommended)
- Run Reverb behind Nginx/Caddy in production with SSL
Reference Guide
| Need | Reference |
|---|---|
| Channel types, authorization | channels.md |
| Echo setup, client listeners | client.md |
Best Practices
DO
- Use
ShouldBroadcastwith queue for scalability - Authorize private and presence channels
- Use presence channels for user awareness
DON'T
- Broadcast sensitive data on public channels
- Forget to configure CORS for cross-origin clients
- Expose Reverb directly without a reverse proxy
Laravel 13 Notes
Reverb 1.x (current 1.12) is Laravel 13 compatible with no changes. Notes:
- Broadcast events can be routed via
Queue::route(ShouldBroadcast::class, queue: 'events')(see laravel-queues) Context::add()is propagated automatically into broadcast events- PHP: Reverb accepts PHP 8.2+, but Laravel 13 requires PHP 8.3 minimum
- Alternative: first-party Mercure driver (13.32+), installable via
php artisan install:broadcasting(--pretendoption in 13.33 to preview)
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/channels.md
- references/client.md
FAQ
Что делает скилл laravel-reverb?
Implement real-time WebSocket communication with Laravel Reverb. Use when adding live updates, chat, notifications, or presence features.
Как установить скилл laravel-reverb?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл laravel-reverb запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…