feat(#102): added support for Alias plugin

This commit is contained in:
Benjamin Nussbaum 2026-01-11 19:34:11 +01:00
parent 0d6079db8b
commit 3f98a70ad9
5 changed files with 222 additions and 32 deletions

View file

@ -46,6 +46,7 @@ class Plugin extends Model
'dark_mode' => 'boolean',
'preferred_renderer' => 'string',
'plugin_type' => 'string',
'alias' => 'boolean',
];
protected static function boot()
@ -153,7 +154,7 @@ class Plugin extends Model
public function updateDataPayload(): void
{
if ($this->data_strategy !== 'polling' || !$this->polling_url) {
if ($this->data_strategy !== 'polling' || ! $this->polling_url) {
return;
}
$headers = ['User-Agent' => 'usetrmnl/byos_laravel', 'Accept' => 'application/json'];