Finish grids
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user