/** * */ public function modificar() { User::where('id', '=', $this->id)->update(['name' => $this->name, 'email' => $this->email, 'password' => $this->password, 'sw_activo' => $this->sw_activo]); return true; }