Support the ongoing development of →
posted 10 years ago
Last updated 2 years ago.

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.

UserInterface	$user	
bool	        $remember	
Return Value    void	

Alternatively search through the Framework repository :-)

Last updated 2 years ago.

Sign in to participate in this thread!


Your banner here too?

Joe96 joe96 Joined 28 Apr 2014


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

Your logo here?

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

© 2024 - All rights reserved.