0
運行PHP工匠鼓搗後,我創建一個用戶:Laravel 5驗證::嘗試不工作
App\User::create(['email' => '[email protected]', 'password' => '123456'])
=> App\User {#723
email: "[email protected]",
updated_at: "2015-10-13 17:33:58",
created_at: "2015-10-13 17:33:58",
id: 6,
}
爲什麼下面的命令返回false?
Auth::attempt(['email' => '[email protected]', 'password' => '123456'])
=> false
如何使用Auth :: attempt?