public function pong($secret)
    {
        $this->database = $this->database->map(function ($item) use ($secret) {
            if ($item['secret'] == $secret) {
                $item['ponged_at'] = Carbon::now();
            }

            return $item;
        });

        $this->persist();
    }
public function pong($secret)
    {
        $this->database = $this->database->map(function ($item) use ($secret) {
            if ($item['secret'] == $secret) {
                $item['ponged_at'] = Carbon::now();
            }

            return $item;
        });

        $this->persist();
    }
public function pong ( $ secret ) { $ this -> database = $ this -> database -> map ( function ( $ item ) use ( $ secret ) { if ( $ item [ 'secret' ] == $ secret ) { $ item [ 'ponged_at' ] = Carbon :: now ( ) ; } return $ item ; } ) ; $ this -> persist ( ) ; }
Create and persist pong.

@param $secret
Create and persist pong .