Ejemplo n.º 1
0
 public function updateUser($request, $id)
 {
     $user = User::updateUser($request, $id);
     if (!$user) {
         throw new \Exception('User could not be updated.');
     }
     return $user;
 }