protected function snapshotsFor($key)
    {
        return collect($this->connection()->zrange('snapshot:'.$key, 0, -1))
            ->map(function ($snapshot) {
                return (object) json_decode($snapshot, true);
            })->values()->all();
    }
protected function snapshotsFor($key)
    {
        return collect($this->connection()->zrange('snapshot:'.$key, 0, -1))
            ->map(function ($snapshot) {
                return (object) json_decode($snapshot, true);
            })->values()->all();
    }
protected function snapshotsFor ( $ key ) { return collect ( $ this -> connection ( ) -> zrange ( 'snapshot:' . $ key , 0 , - 1 ) ) -> map ( function ( $ snapshot ) { return ( object ) json_decode ( $ snapshot , true ) ; } ) -> values ( ) -> all ( ) ; }
Get all of the snapshots for the given key.

@param  string  $key
@return array
Get all of the snapshots for the given key .