Use this peace of code:

\Session::getHandler()->gc(0);
1

Refs:

  • https://stackoverflow.com/questions/50732321/artisan-command-for-clearing-all-session-data-in-laravel

Powered by VuePress
Copyright 2010-2024 Thai Nguyen Hung all rights reserved.