Ejemplo n.º 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
 }
Ejemplo n.º 2
0
 /**
  * Scope Mutator
  */
 public function setPasswordAttribute($password)
 {
     $this->attributes['password'] = mcrypt($password);
 }