src/FacebookFileDriver.php
public function getFiles(array $message)
    {
        return Collection::make($message['message']['attachments'])->where('type',
            'file')->pluck('payload')->map(function ($item) {
                return new File($item['url'], $item);
            })->toArray();
    }
public function getFiles(array $message)
    {
        return Collection::make($message['message']['attachments'])->where('type',
            'file')->pluck('payload')->map(function ($item) {
                return new File($item['url'], $item);
            })->toArray();
    }
public function getFiles ( array $ message ) { return Collection :: make ( $ message [ 'message' ] [ 'attachments' ] ) -> where ( 'type' , 'file' ) -> pluck ( 'payload' ) -> map ( function ( $ item ) { return new File ( $ item [ 'url' ] , $ item ) ; } ) -> toArray ( ) ; }
Retrieve file urls from an incoming message.

@param array $message
@return array A download for the file.
Retrieve file urls from an incoming message .