Answers for "laravel 8 logout user"

PHP
0

laravel force user logout

if (!Auth::user()->isActive()) {
    Auth::logout();

    return Redirect::home();
}
Posted by: Guest on October-06-2020
0

laravel logout all users

rm -rf storage/framework/sessions/*
Posted by: Guest on April-07-2020
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
-1

make authentication in laravel

composer require laravel/ui:^2.4

php artisan ui vue --auth
Posted by: Guest on November-14-2020

Browse Popular Code Answers by Language