public function records()
    {
        $recs = $this->get('recLoadAll');

        $records = array_get($recs, 'response.recs.objs');

        $all = new Collection();

        foreach ($records as $record) {
            $id = (int) $record['rec_id'];
            $model = new Record($this->client, $id, $this, ['recLoad' => $record]);
            $all->put($id, $model);
        }

        return $all;
    }
public function records()
    {
        $recs = $this->get('recLoadAll');

        $records = array_get($recs, 'response.recs.objs');

        $all = new Collection();

        foreach ($records as $record) {
            $id = (int) $record['rec_id'];
            $model = new Record($this->client, $id, $this, ['recLoad' => $record]);
            $all->put($id, $model);
        }

        return $all;
    }
public function records ( ) { $ recs = $ this -> get ( 'recLoadAll' ) ; $ records = array_get ( $ recs , 'response.recs.objs' ) ; $ all = new Collection ( ) ; foreach ( $ records as $ record ) { $ id = ( int ) $ record [ 'rec_id' ] ; $ model = new Record ( $ this -> client , $ id , $ this , [ 'recLoad' => $ record ] ) ; $ all -> put ( $ id , $ model ) ; } return $ all ; }
Get all dns records as a collection of models.

@return \Illuminate\Support\Collection
Get all dns records as a collection of models .