/**
  * Handle the command.
  *
  * @param $command
  */
 public function handle($command)
 {
     $role = Role::create(['default' => $command->default]);
     $this->roleRepository->save($role);
     $this->translationService->sync($role, $command->translated);
     $this->permissionsService->sync($role, $command->permissions);
     $this->eventDispatcher->dispatch($role->releaseEvents());
 }
 /**
  * Setup the guest role for the account.
  *
  * @param Account $account
  */
 private function setupGuest(Account $account)
 {
     $guest = Role::create([]);
     $guest->setAccount($account);
     $this->roleRepository->save($guest);
 }