fix: 🐛 Call parent constructor on model
This commit is contained in:
parent
8c547414b4
commit
bc56f713ad
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue