classes/Collections/Elements.php
public function populate()
    {
        return array_combine(array_map(function ($key) {
            return str_replace('.', '|', $key);
        }, $this->keys()->all()), $this->pluck('value')->all());
    }
public function populate()
    {
        return array_combine(array_map(function ($key) {
            return str_replace('.', '|', $key);
        }, $this->keys()->all()), $this->pluck('value')->all());
    }
public function populate ( ) { return array_combine ( array_map ( function ( $ key ) { return str_replace ( '.' , '|' , $ key ) ; } , $ this -> keys ( ) -> all ( ) ) , $ this -> pluck ( 'value' ) -> all ( ) ) ; }
Return key-value pairs for use by former to populate the fields.  The
keys must be converted to the Input safe variant.

@return array
Return key - value pairs for use by former to populate the fields . The keys must be converted to the Input safe variant .