Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Observers/EggVariableObserver.php
7432 views
1
<?php
2
3
namespace Pterodactyl\Observers;
4
5
use Pterodactyl\Models\EggVariable;
6
7
class EggVariableObserver
8
{
9
public function creating(EggVariable $variable): void
10
{
11
if ($variable->field_type) {
12
unset($variable->field_type);
13
}
14
}
15
16
public function updating(EggVariable $variable): void
17
{
18
if ($variable->field_type) {
19
unset($variable->field_type);
20
}
21
}
22
}
23
24