2015-10-13 174 views

回答

3

Laravel使用bcrypt來哈希密碼。如果您按以下方式創建用戶:

App\User::create(['email' => '[email protected]', 'password' => bcrypt(123456)]); 

Auth::attempt(['email' => '[email protected]', 'password' => '123456']); 

將工作。