Support the ongoing development of Laravel.io →
posted 10 years ago
Authentication
Last updated 2 years ago.
0

Yes, just like attempt you can use remember with login, login takes two parameters, a user object and an optional remember, you can see that here, it defaults to false.

Auth::login($user, true);

For this sort of question you can make good use of either the Laravel API explorer, from the search bar enter what you're interested in (in this case auth::login) and then take a look at the parameters:

public void login(UserInterface $user, bool $remember = false)

Log a user into the application.

Parameters
UserInterface	$user	
bool	        $remember	
Return Value    void	

Alternatively search through the Framework repository :-)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Joe96 joe96 Joined 28 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.