Finish grids

This commit is contained in:
2026-06-29 14:58:08 +02:00
parent 60ce1cf400
commit e9fdc9be51
3 changed files with 25 additions and 5 deletions

View File

@@ -253,6 +253,11 @@ class Entry extends Model
return $converter->convert($this->description)->getContent();
}
public function getTotalDownloadsAttribute(): int
{
return $this->files->sum('download_count');
}
public function parseStaffCredits(): ?array {
return json_decode( $this->staff_credits ?? "", true );
}