/**
  * Handle the command.
  *
  * @param  FavoriteProductCommand  $command
  * @return void
  */
 public function handle(FavoriteProductCommand $command)
 {
     $user = $this->userRepo->findById($command->userId);
     dd($user);
     $this->productRepo->favorite($command->productIdToFavorite, $user);
     return $user;
 }
 /**
  * Handle the command.
  *
  * @param  UnfavoriteProductCommand  $command
  * @return void
  */
 public function handle(UnfavoriteProductCommand $command)
 {
     $user = $this->userRepo->findById($command->userId);
     $this->productRepo->unFavorite($command->userIdToUnfollow, $user);
     return $user;
 }
 /**
  * Handle the command.
  *
  * @param  UnfollowUserCommand  $command
  * @return void
  */
 public function handle(UnfollowUserCommand $command)
 {
     $user = $this->userRepo->findById($command->userId);
     $this->userRepo->unfollow($command->userIdToUnfollow, $user);
 }
 /**
  * Handle the command.
  *
  * @param  FollowUserCommand  $command
  * @return void
  */
 public function handle(FollowUserCommand $command)
 {
     $user = $this->userRepo->findById($command->userId);
     $this->userRepo->follow($command->userIdToFollow, $user);
     return $user;
 }