2016-05-14 88 views

回答

1

你有兩個選擇

電話撥打方法的哈希門面 Hash::make('string_here')

或者使用全局助手功能bcrypt('string_here')

例子:

//Hash facade example 
$simpan['password']= Hash::make(Request::input('password')); 

//bcrypt global helper function 
$simpan['password']= bcrypt(Request::input('password')); 

資源:

https://laravel.com/docs/5.1/hashing

+0

謝謝,它工作 –