Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // https://coderwall.com/p/ifmvxa/nice-way-to-hash-password-in-laravel-when-creating-new-user
- // https://bosnadev.com/2015/12/17/laravel-accessors-mutators/
- public function setPasswordAttribute($pass){
- $this->attributes['password'] = Hash::make($pass);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement