我有一个函数
if (Auth::attempt(['username' => 'trannghj', 'password' => 'trannghj2281996'], true, true)) {
dd(Auth::check());
} else {
dd('Not login');
}
Auth::attempt
返回true,但dd(Auth::check());
返回false。我使用的是Laravel 5.3。
请帮帮我。
是password
列在你的users
表加密使用bcrypt当你保存它们?