function saving($model)
 {
     if (Hash::needsRehash($model->password)) {
         $hashed = Hash::make($model->password);
         $model->password = $hashed;
     }
 }