app\models\Changelog::scopeListing PHP Method

scopeListing() public method

}
public scopeListing ( $query, $offset = 20 )
    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');
    }