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