Laravel - Collections - Method Combine

The combine method combines the values of the collection, as keys, with the values of another array or collection:

    
    $collection = collect(['name', 'age']);
    
    $combined = $collection->combine(['George', 29]);
    
    $combined->all();
    
    // ['name' => 'George', 'age' => 29]