/**
  * Handle the command
  *
  * @param $command
  * @return mixed
  */
 public function handle($command)
 {
     $user = User::register($command->username, $command->email, $command->password);
     $this->repository->save($user);
     $this->dispatchEventsFor($user);
     return $user;
 }
 /**
  * Handle the command
  *
  * @param $command
  * @return mixed
  */
 public function handle($command)
 {
     $user = $this->userRepository->findById($command->userId);
     $this->userRepository->follow($command->userIdToFollow, $user);
     return $user;
 }
 public function show($username)
 {
     $user = $this->userRepository->findByUsername($username);
     return View::make('users.show')->withUser($user);
 }