예제 #1
0
 public function setPasswordAttribute($password)
 {
     $this->attributes['password'] = mcrypt($password);
     // When the following happens:
     //      $user->password = '******';
     // The user password will be a hashed version of that
 }
예제 #2
0
파일: User.php 프로젝트: ThomasMountain/dev
 /**
  * Scope Mutator
  */
 public function setPasswordAttribute($password)
 {
     $this->attributes['password'] = mcrypt($password);
 }