Answers for "logout all users laravel 8"

PHP
0

logout all users laravel 8

for database session
I am updating all users remember tokens to blank and then flushing stored 
session by truncate the sessions table.
  
DB::table('users')->update(array(
    'remember_token' => '',
    'logout_at' => Carbon::now()->toDateTimeString())
);
Session::flush();
Posted by: Guest on April-19-2021

Browse Popular Code Answers by Language