hadyfayed/laravel-agent/broadcast-make
Claude Code and agent skill by hadyfayed/laravel-agent
- community
Checking that the SKILL.md file is still in the repository.
Generate a broadcast event + channel wiring for real-time updates; when adding broadcasting.
Install
npx vskill@latest install hadyfayed/laravel-agent/broadcast-makeSKILL.md
The same SKILL.md was published earlier as hadyfayed/laravel-agent/broadcast-make.
Task
Generate a broadcast event with channel authorization and client-ready usage examples.
Input
- EventName: Pascal-cased event name (e.g.,
OrderUpdated,MessageSent,UserJoined) - Channel type: Broadcast channel scope (default:
public) public— Any client can listen; no authorizationprivate— User must be authorized; channel name pattern likeuser.{id}presence— Like private, but broadcasts presence (joins/leaves); e.g.,chat.{roomId}- Channel pattern: Broadcast channel name with optional placeholders (e.g.,
order.{id},user.{userId}.notifications)
Steps
- Create the event in
app/Events/<EventName>.php:
``bash php artisan make:event <EventName> ` Implement ShouldBroadcast and set broadcastOn()` to return the appropriate channel type.
- Add channel authorization (if private or presence type):
Edit routes/channels.php to add authorization logic: ``php Broadcast::private('user.{id}', function ($user, $id) { return $user->id === (int) $id; }); ``
- Dispatch the event in your application code:
``php broadcast(new OrderUpdated($order)); broadcast(new MessageSent($message))->toOthers(); // exclude sender ``
- Wire the client listener (JavaScript/Livewire):
``javascript Echo.private('user.123') .listen('.order-updated', (e) => { console.log('Order updated:', e); }); ``
Reference
For deep broadcasting patterns (presence channels, private channels, authentication, connection strategies), see the laravel-websocket reference skill in the plugin.
Broadcasting best practices
- Use
toOthers()to exclude the sender when broadcasting user actions - Leverage presence channels for real-time user activity (typing indicators, online status)
- Authorize private channels to prevent unauthorized listeners
- Use queue broadcasting in production for better performance
- Test broadcasting with fake() in tests
Reverb/Pusher config
Update .env:
Or for Pusher:
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/broadcast-make/SKILL.md
Popularity
- Repository stars
- 13
- Repository forks
- 1
- 7-day trend score
- 13
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hadyfayed/laravel-agent/broadcast-make)