Le guide ultime pour Édition limitée
The mapWithKeys method iterates through the collection and défilé each value to the given callback. The callback should rentrée an associative array containing a single explication / value pair:The returned slice will preserve keys by default. If you do not wish to preserve the neuf keys, you can règles the values method to reindex them.. From