protected function fields(SlackAttachment $attachment)
    {
        return collect($attachment->fields)->map(function ($value, $key) {
            return ['title' => $key, 'value' => $value, 'short' => true];
        })->values()->all();
    }
protected function fields(SlackAttachment $attachment)
    {
        return collect($attachment->fields)->map(function ($value, $key) {
            return ['title' => $key, 'value' => $value, 'short' => true];
        })->values()->all();
    }
protected function fields ( SlackAttachment $ attachment ) { return collect ( $ attachment -> fields ) -> map ( function ( $ value , $ key ) { return [ 'title' => $ key , 'value' => $ value , 'short' => true ] ; } ) -> values ( ) -> all ( ) ; }
Format the attachment's fields.

@param  \Illuminate\Notifications\Messages\SlackAttachment  $attachment
@return array
Format the attachment s fields .