Я пытаюсь прочитать laravel объект и назначить его в новую переменную. Я не знаю, как это сделать, пожалуйста, помогите кому-нибудь
ЭТО МОЯ ФУНКЦИЯ
public function nextToJumpGrs(CompetitionService $competitionService, CachedEventResourceService $cachedEventResourceService, ConfigurationRepositoryInterface $configurationRepository,MarketRepository $marketTypeRepository)
{
$nextToJump = $cachedEventResourceService->nextToJump();
$markets=array();
$config = $configurationRepository->getConfigByName('sports_settings', true);
$competitions = $competitionService->getCompetitionsByN2JEventResourcesGrs($nextToJump->slice(0, array_get($config, 'next_to_jump_events')));
return $competitions;
}
}
это какие $ соревнования возвращаются
Я хочу прочитать эти рынки [] и продукты [] и назначить другую переменную, пожалуйста, кто-нибудь поможет