protected function hasDnsRecordChanged($domain, $record)
    {
        if (! $dns_history = History::where('meta', $domain)->orderBy('created_at', 'desc')->first()) {
            $this->saveDnsRecord($domain, $record);
            return false;
        }

        $differences = $this->compareDnsRecords($dns_history->record, $record);

        return (count($differences['original']) && count($differences['new']));
    }
protected function hasDnsRecordChanged($domain, $record)
    {
        if (! $dns_history = History::where('meta', $domain)->orderBy('created_at', 'desc')->first()) {
            $this->saveDnsRecord($domain, $record);
            return false;
        }

        $differences = $this->compareDnsRecords($dns_history->record, $record);

        return (count($differences['original']) && count($differences['new']));
    }
protected function hasDnsRecordChanged ( $ domain , $ record ) { if ( ! $ dns_history = History :: where ( 'meta' , $ domain ) -> orderBy ( 'created_at' , 'desc' ) -> first ( ) ) { $ this -> saveDnsRecord ( $ domain , $ record ) ; return false ; } $ differences = $ this -> compareDnsRecords ( $ dns_history -> record , $ record ) ; return ( count ( $ differences [ 'original' ] ) && count ( $ differences [ 'new' ] ) ) ; }
Check if the supplied record is different from the most recently stored
DNS record available.

@param  string  $domain
@param  array  $record
@return bool
Check if the supplied record is different from the most recently stored DNS record available .