DirectResponseHelper.php 302 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 <?php namespace App\Service; class DirectResponseHelper { static function getExternalIdsChunkByResult($data) { return array_chunk(array_column(array_filter($data, function ($result) { return isset($result['Id']); }, ARRAY_FILTER_USE_BOTH), 'Id'), 1000); } }