📜  laravel 集合 concat - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:37.745000             🧑  作者: Mango

代码示例2
$collection = collect(['John Doe']);

$concatenated = $collection->concat(['Jane Doe'])->concat(['name' => 'Johnny Doe']);

$concatenated->all();

// ['John Doe', 'Jane Doe', 'Johnny Doe']