cqp hace 3 semanas
padre
commit
876bb854e9
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      app/Service/EmployeeService.php

+ 2 - 0
app/Service/EmployeeService.php

@@ -49,6 +49,8 @@ class EmployeeService extends Service
                 if($data['password'] !== '******'){
                     $model->password = Hash::make($data['password']);
                 }
+            }else{
+                $model->password = "";
             }
             $model->save();