Exemplo n.º 1
0
 public static function createFromInput(\Controllers\Request $input, $id = null, $save = true)
 {
     $user = parent::createFromInput($input, $id, false);
     if ($input->has('password') && '' != $input->get('password')) {
         $user->password = bcrypt($input->get('password'));
     }
     if ($save) {
         $user->save();
     }
     return $user;
 }