Answers for "get with in auth user in laravel"

PHP
4

how login one user with id in laravel

public function manualLogin(){
    $user = User::find(1);
    Auth::login($user);
    return redirect('/');
}
///////////////////////////////////////////////////////////////
// or 

Auth::logout();
Posted by: Guest on May-24-2021
8

laravel auth user_id

$userId = Auth::id();
Posted by: Guest on May-12-2020

Code answers related to "get with in auth user in laravel"

Browse Popular Code Answers by Language