Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

login selected user laravel

// Manual Auth Login
$user = User::find(1);
Auth::login($user);

//OR
$user = User::where('otp',$request->otp)->first();
auth()->login($user);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #login #selected #user #laravel
ADD COMMENT
Topic
Name
4+2 =