2016-05-14 6 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

ありがとうございます –