$list = $list->toArray(); $hot = [[ "id" => 0, "name" => '热卖', "key" => 'hot', ]]; array_walk($hot,function($item) use (&$list) { array_unshift($list, $item); });