BossBey File Manager
PHP:
8.2.30
OS:
Linux
User:
imagivibe
Root
/
home
/
imagivibe
/
www
/
app.imagivibe.com
/
vendor
/
laravel
/
octane
/
src
/
Listeners
📤 Upload
📝 New File
📁 New Folder
Close
Editing: GiveNewApplicationInstanceToBroadcastManager.php
<?php namespace Laravel\Octane\Listeners; use Illuminate\Broadcasting\BroadcastManager; class GiveNewApplicationInstanceToBroadcastManager { /** * Handle the event. * * @param mixed $event */ public function handle($event): void { if (! $event->sandbox->resolved(BroadcastManager::class)) { return; } with($event->sandbox->make(BroadcastManager::class), function ($manager) use ($event) { $manager->setApplication($event->sandbox); // Forgetting drivers will flush all channel routes which is unwanted... // $manager->forgetDrivers(); }); } }
Save
Cancel