Edit File: FlushAuthenticationState.php
<?php namespace Laravel\Octane\Listeners; class FlushAuthenticationState { /** * Handle the event. * * @param mixed $event * @return void */ public function handle($event): void { if ($event->sandbox->resolved('auth.driver')) { $event->sandbox->forgetInstance('auth.driver'); } if ($event->sandbox->resolved('auth')) { with($event->sandbox->make('auth'), function ($auth) use ($event) { $auth->setApplication($event->sandbox); $auth->forgetGuards(); }); } } }
Back to File Manager