Laravel - Collections - Method Concat

The concat method appends the given array or collection's values onto the end of another collection:

    
    $collection = collect(['John Doe']);
    
    $concatenated = $collection->concat(['Jane Doe'])->concat(['name' => 'Johnny Doe']);
    
    $concatenated->all();
    
    // ['John Doe', 'Jane Doe', 'Johnny Doe']