AgentStack
SKILL verified MIT Self-run

Laravel Reverb Websockets

skill-alizharb-agent-skills-laravel-reverb-websockets · by AlizHarb

Use when setting up, configuring, or debugging real-time broadcasting and websockets using Laravel Reverb and Echo.

No reviews yet
0 installs
3 views
0.0% view→install

Install

$ agentstack add skill-alizharb-agent-skills-laravel-reverb-websockets

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Laravel Reverb Websockets? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Laravel Reverb Websockets

When To Use

Use this skill when implementing real-time updates, chat systems, live notifications, or dashboard stat updates using Laravel Reverb and Laravel Echo.

Workflow

  1. Verify installation: Ensure Reverb configuration exists (config/reverb.php).
  2. Channel definition: Specify broadcast channels and authorized access rules inside routes/channels.php.
  3. Configure the Event: Ensure event implements ShouldBroadcast or ShouldBroadcastNow.
  4. Trigger Event: Broadcast the event safely via standard event dispatches.
  5. Echo Client Integration: Setup frontend Echo client listener bindings for private/presence channels.

Examples

Good Example

// app/Events/MessageSent.php
namespace App\Events;

use Illuminate\Contracts\Broadcasting\ShouldBroadcast;
use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Broadcasting\PrivateChannel;

final class MessageSent implements ShouldBroadcast
{
    use Dispatchable, SerializesModels;

    public function __construct(public string $message, public int $userId) {}

    public function broadcastOn(): array
    {
        return [
            new PrivateChannel("chat.user.{$this->userId}"),
        ];
    }
}
// routes/channels.php
Broadcast::channel('chat.user.{id}', function (User $user, int $id) {
    return $user->id === $id;
});

Bad Example

// ❌ Using public broadcast channels for sensitive data, or using custom HTTP calls for real-time updates.
public function triggerUpdate(Request $request) {
    Http::post('http://localhost:3000/trigger', $request->all());
}

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.