$args */ public function store($root, array $args): array { /** @var ExternalProfile $profile */ $profile = Arr::pull($args, self::MODEL); if (! $profile->canBeSynced()) { throw new ClientForbiddenException('This external profile cannot be synced at the moment.'); } $profile->dispatchSyncJob(); return [ 'message' => 'Job dispatched.', ]; } }