国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Laravel's users table has a remember_token field, what is its role?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-16 16:50:32
0
2
652

Laravel's users table has a remember_token field. What is its function?

PHP中文網(wǎng)
PHP中文網(wǎng)

認證0級講師

reply all(2)
Peter_Zhu

That is, when the user logs in, for example, there is

賬號 <inout type="text" name="username">
密碼 <inout type="password" name="password">
<input type="checkbox" value="1" name="remember_me" > 保存登錄

When "Save Login" is selected, according to the Login interface below, you can remember_tokensave a random Token in Cookie and database users. You do not need to re-enter your account and password to log in for a period of time in the future.

Login interface

Auth::guard()->attempt(['username' => 'admin', 'password' => '123456'], $request->input('remember_me')); //第二個參數(shù)TRUE則保存

Determine whether the user is logged in (including remember_me)

Auth::guard()->check();

Please check (laravel 5.3) for details

.\vendor\laravel\framework\src\Illuminate\Auth\Guard.php
洪濤

Doesn’t that literally mean “remember me”…

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template