streamKey()->updateOrCreate( ['channel_id' => $channel->id], [ 'key_hash' => Hash::make($plainTextKey), 'revoked_at' => null, ], ); return $plainTextKey; } public function tokenizedPath(Channel $channel, string $plainTextKey): string { return "{$channel->slug}?token={$plainTextKey}"; } public function ingestServer(): string { return rtrim((string) config('streaming.rtmp_ingest_url'), '/'); } }