mirror of
https://github.com/usetrmnl/byos_laravel.git
synced 2026-01-13 15:07:49 +00:00
feat: adds compatibility with TRMNL Design Framework v2
This commit is contained in:
parent
f20977a822
commit
12c82e02d7
7 changed files with 27 additions and 12 deletions
|
|
@ -24,4 +24,13 @@ final class DeviceModel extends Model
|
|||
'offset_y' => 'integer',
|
||||
'published_at' => 'datetime',
|
||||
];
|
||||
|
||||
public function getColorDepthAttribute(): ?string
|
||||
{
|
||||
if (! $this->bit_depth){
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->bit_depth . 'bit';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue