mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
exam add index SEED_POINTS + UPLOAD_TORRENT_COUNT
This commit is contained in:
@@ -488,6 +488,11 @@ class Torrent extends NexusModel
|
||||
$query->where('visible', $visible);
|
||||
}
|
||||
|
||||
public function scopeNormal($query)
|
||||
{
|
||||
$query->where('visible', self::VISIBLE_YES)->where('banned', self::BANNED_NO);
|
||||
}
|
||||
|
||||
public function torrent_tags(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(TorrentTag::class, 'torrent_id');
|
||||
|
||||
Reference in New Issue
Block a user