confirm("\n****************************************************\nTHIS WILL FORCE A LOGIN FOR ALL LOGGED IN USERS.\n\nAre you SURE you wish to continue? ")) { $session_files = glob(storage_path("framework/sessions/*")); $count = 0; foreach ($session_files as $file) { if (is_file($file)) unlink($file); $count++; } \DB::table('users')->update(['remember_token' => null]); $this->info($count. ' sessions cleared!'); } // } }