/** * UnFollow user * * @param $input * @return mixed */ public function unFollowUser($input) { $user = $this->userRepo->findById($input['user_id']); $userToUnFollow = $this->userRepo->findById($input['userIdToUnFollow']); $this->albumRepo->unShareAllAlbums($user, $userToUnFollow); return $this->userRepo->unFollow($input['userIdToUnFollow'], $user); }