Files
AndyTranscribe/routes/channels.php
T
ben bfcfc12f58 Add Fortify auth, Flux dark mode, demo seed, and Docker hot reload.
Protect recordings per user, seed a demo login on container start, and bind-mount the app with Vite HMR for local Compose development.
2026-08-12 18:38:53 +02:00

13 lines
316 B
PHP

<?php
use App\Models\Recording;
use App\Models\User;
use Illuminate\Support\Facades\Broadcast;
Broadcast::channel('recording.{recordingId}', function (User $user, int $recordingId): bool {
return Recording::query()
->whereKey($recordingId)
->where('user_id', $user->id)
->exists();
});