src/EloquentDataTable.php
protected function isNotEagerLoaded($relation)
    {
        return ! $relation
            || ! array_key_exists($relation, $this->query->getEagerLoads())
            || $relation === $this->query->getModel()->getTable();
    }
protected function isNotEagerLoaded($relation)
    {
        return ! $relation
            || ! array_key_exists($relation, $this->query->getEagerLoads())
            || $relation === $this->query->getModel()->getTable();
    }
protected function isNotEagerLoaded ( $ relation ) { return ! $ relation || ! array_key_exists ( $ relation , $ this -> query -> getEagerLoads ( ) ) || $ relation === $ this -> query -> getModel ( ) -> getTable ( ) ; }
Check if a relation was not used on eager loading.

@param  string $relation
@return bool
Check if a relation was not used on eager loading .