protected function isNativeAttribute($key)
    {
        if($this->timestamps && in_array($key, ['updated_at', 'created_at'])){

            return true;

        } elseif($key == $this->primaryKey){

            return true;

        }

        return false;
    }
protected function isNativeAttribute($key)
    {
        if($this->timestamps && in_array($key, ['updated_at', 'created_at'])){

            return true;

        } elseif($key == $this->primaryKey){

            return true;

        }

        return false;
    }
protected function isNativeAttribute ( $ key ) { if ( $ this -> timestamps && in_array ( $ key , [ 'updated_at' , 'created_at' ] ) ) { return true ; } elseif ( $ key == $ this -> primaryKey ) { return true ; } return false ; }
Determine if key is a native attribute
@param $key
@return bool
Determine if key is a native attribute