Illuminate\Database\Query\Builder::enforceOrderBy PHP 메소드

enforceOrderBy() 보호된 메소드

Throw an exception if the query doesn't have an orderBy clause.
protected enforceOrderBy ( ) : void
리턴 void
    protected function enforceOrderBy()
    {
        if (empty($this->orders) && empty($this->unionOrders)) {
            throw new RuntimeException('You must specify an orderBy clause when using this function.');
        }
    }