Logout.php 295 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 <?php namespace App\Listeners\Auth; use Illuminate\Auth\Events\Logout as ILogout; class Logout { /** * Handle the event. * * @param ILogout $event * @return void */ public function handle(ILogout $event) { session()->forget('company_id'); } }