classes/Models/Traits/Exportable.php
protected function mapExportAttributes($attributes)
    {
        return collect($attributes->toArray())->map(function($value, $key) {
            return $this->mapExportAttribute($value, $key);
        })->toArray();
    }
protected function mapExportAttributes($attributes)
    {
        return collect($attributes->toArray())->map(function($value, $key) {
            return $this->mapExportAttribute($value, $key);
        })->toArray();
    }
protected function mapExportAttributes ( $ attributes ) { return collect ( $ attributes -> toArray ( ) ) -> map ( function ( $ value , $ key ) { return $ this -> mapExportAttribute ( $ value , $ key ) ; } ) -> toArray ( ) ; }
Massage attribute values. The CSV needs a flat array.

@return array
Massage attribute values . The CSV needs a flat array .