app/Console/Commands/FlushSessionsCommand.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        DB::table('sessions')->truncate();
        $files = glob(storage_path('framework/sessions/').'*');
        if ($files != false) {
            array_map('unlink', $files);
            $this->info('Sessions Cleared!');
        }
    }
public function handle ( ) { DB :: table ( 'sessions' ) -> truncate ( ) ; $ files = glob ( storage_path ( 'framework/sessions/' ) . '*' ) ; if ( $ files != false ) { array_map ( 'unlink' , $ files ) ; $ this -> info ( 'Sessions Cleared!' ) ; } }
Execute the console command.
Execute the console command .