/**
  * 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);
 }
 /**
  * @param string $command 'op' | 'deop'
  * @param int $userId
  * @param string $runhash
  */
 private function callCommand($command, $userId, $runhash)
 {
     $mcname = $this->userRepo->findById($userId)->fetch()->mcname;
     $this->serverComm->issueCommand($command . ' ' . $mcname, $runhash);
 }
Beispiel #3
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  User $user
  * @return Response
  */
 public function destroy(\Illuminate\Http\Request $request)
 {
     $user = $this->user->findById($request->input('id'));
     $this->dispatch(new User\Jobs\DeleteJob($user));
     return $user;
 }