*/ protected $guarded = []; /** * @return BelongsTo */ public function release(): BelongsTo { return $this->belongsTo(Release::class, 'releases_id'); } /** * @return Model|null|static */ public static function getReleaseNfo(mixed $id, bool $getNfoString = true) { $nfo = self::query()->where('releases_id', $id)->whereNotNull('nfo')->select(['releases_id']); if ($getNfoString === true) { $nfo->selectRaw('UNCOMPRESS(nfo) AS nfo'); } return $nfo->first(); } }