fix: 🐛 Call parent constructor on model

This commit is contained in:
IceToast 2023-05-07 21:24:26 +02:00
parent 8c547414b4
commit bc56f713ad
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,8 @@ class Server extends Model
public function __construct() public function __construct()
{ {
parent::__construct();
$ptero_settings = new PterodactylSettings(); $ptero_settings = new PterodactylSettings();
$this->pterodactyl = new PterodactylClient($ptero_settings); $this->pterodactyl = new PterodactylClient($ptero_settings);
} }

View file

@ -93,6 +93,8 @@ class User extends Authenticatable implements MustVerifyEmail
public function __construct() public function __construct()
{ {
parent::__construct();
$ptero_settings = new PterodactylSettings(); $ptero_settings = new PterodactylSettings();
$this->pterodactyl = new PterodactylClient($ptero_settings); $this->pterodactyl = new PterodactylClient($ptero_settings);
} }