public function scopeListing($query, $offset = 20) { $limit = config('osu.changelog.max', 20); return $query->where('private', '=', 0)->take($limit)->skip($offset)->orderBy('changelog_id', 'desc'); }