Files
UNIT3D-Community-Edition/app/Models/AutomaticTorrentFreeleech.php
T
Roardom 4422222a4b add: automatic torrent freeleeches
Automatically set torrents to freeleech if they match the given criteria.
2024-02-07 11:14:39 +00:00

44 lines
1.0 KiB
PHP

<?php
namespace App\Models;
use App\Traits\Auditable;
use Illuminate\Database\Eloquent\Model;
class AutomaticTorrentFreeleech extends Model
{
use Auditable;
protected $guarded = [];
/**
* Belongs To A Category.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Category, self>
*/
public function category(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Category::class);
}
/**
* Belongs To A Type.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Type, self>
*/
public function type(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Type::class);
}
/**
* Belongs To A Resolution.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo<Resolution, self>
*/
public function resolution(): \Illuminate\Database\Eloquent\Relations\BelongsTo
{
return $this->belongsTo(Resolution::class);
}
}