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