Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel tricks and tips

$user = [
    'email' => 'email',
    'password' => 'password'
];
 
if (Auth::attempt($user))
{
    // user is now logged in!
    // Access user object with Auth::user()
}
//@sujay
Source by code.tutsplus.com #
 
PREVIOUS NEXT
Tagged: #laravel #tricks #tips
ADD COMMENT
Topic
Name
4+2 =