src/Media.php
public function scopeUnordered(Builder $q)
    {
        $query = $q->getQuery();
        if ($query->orders) {
            $query->orders = null;
        }
    }
public function scopeUnordered(Builder $q)
    {
        $query = $q->getQuery();
        if ($query->orders) {
            $query->orders = null;
        }
    }
public function scopeUnordered ( Builder $ q ) { $ query = $ q -> getQuery ( ) ; if ( $ query -> orders ) { $ query -> orders = null ; } }
Query scope to remove the order by clause from the query.
@param  \Illuminate\Database\Eloquent\Builder $q
@return void
Query scope to remove the order by clause from the query .