src/Storage/DatabaseEntriesRepository.php
public function get($type, EntryQueryOptions $options)
    {
        return EntryModel::on($this->connection)
            ->withTelescopeOptions($type, $options)
            ->take($options->limit)
            ->orderByDesc('sequence')
            ->get()->reject(function ($entry) {
                return ! is_array($entry->content);
            })->map(function ($entry) {
                return new EntryResult(
                    $entry->uuid,
                    $entry->sequence,
                    $entry->batch_id,
                    $entry->type,
                    $entry->family_hash,
                    $entry->content,
                    $entry->created_at,
                    []
                );
            })->values();
    }
public function get($type, EntryQueryOptions $options)
    {
        return EntryModel::on($this->connection)
            ->withTelescopeOptions($type, $options)
            ->take($options->limit)
            ->orderByDesc('sequence')
            ->get()->reject(function ($entry) {
                return ! is_array($entry->content);
            })->map(function ($entry) {
                return new EntryResult(
                    $entry->uuid,
                    $entry->sequence,
                    $entry->batch_id,
                    $entry->type,
                    $entry->family_hash,
                    $entry->content,
                    $entry->created_at,
                    []
                );
            })->values();
    }
public function get ( $ type , EntryQueryOptions $ options ) { return EntryModel :: on ( $ this -> connection ) -> withTelescopeOptions ( $ type , $ options ) -> take ( $ options -> limit ) -> orderByDesc ( 'sequence' ) -> get ( ) -> reject ( function ( $ entry ) { return ! is_array ( $ entry -> content ) ; } ) -> map ( function ( $ entry ) { return new EntryResult ( $ entry -> uuid , $ entry -> sequence , $ entry -> batch_id , $ entry -> type , $ entry -> family_hash , $ entry -> content , $ entry -> created_at , [ ] ) ; } ) -> values ( ) ; }
Return all the entries of a given type.

@param  string|null  $type
@param  \Laravel\Telescope\Storage\EntryQueryOptions  $options
@return \Illuminate\Support\Collection|\Laravel\Telescope\EntryResult[]
Return all the entries of a given type .