From a66011701512c720fe7865d582575bd7685c7274 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 30 Sep 2024 11:14:53 +0200 Subject: [PATCH] use latest helper in dev --- app/Models/InstanceSettings.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/app/Models/InstanceSettings.php b/app/Models/InstanceSettings.php index 27a181ee4..6a9876c9b 100644 --- a/app/Models/InstanceSettings.php +++ b/app/Models/InstanceSettings.php @@ -85,4 +85,17 @@ class InstanceSettings extends Model implements SendsEmail return "[{$instanceName}]"; } + + public function helperVersion(): Attribute + { + return Attribute::make( + get: function () { + if (isDev()) { + return 'latest'; + } + + return $this->helper_version; + } + ); + } }