From 03af1c90bd955ab86a27cb0058b19c8fdaeed0ae Mon Sep 17 00:00:00 2001 From: originalaidn <45371311+originalaidn@users.noreply.github.com> Date: Thu, 21 Nov 2024 11:26:13 +0100 Subject: [PATCH] need to construct serverstats --- app/Models/ServerStats.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/Models/ServerStats.php b/app/Models/ServerStats.php index 12d7ef1..d8ba0a7 100644 --- a/app/Models/ServerStats.php +++ b/app/Models/ServerStats.php @@ -19,4 +19,10 @@ public function server() { return $this->belongsTo(SaServer::class, 'server_id'); } + + public function __construct(array $attributes = []) + { + parent::__construct($attributes); + $this->setConnection('mysql'); + } }