/** * Handle the command. * * @param CreateProfileCommand $command * @return void */ public function handle(CreateProfileCommand $command) { //save profile $profile = Profile::initialize($command->user_id, $command->born_again, $command->last_church); $this->repo->saveProfile($profile); //find the auth user $user = $this->repo->findById($command->user_id); //sync($user, $commnd->groups) $this->groupRepo->save($user, $command->group); }