1
1
mirror of https://github.com/pterodactyl/panel.git synced 2024-11-25 18:42:31 +01:00
Pterodactyl-Panel/app/Observers/EggVariableObserver.php

23 lines
427 B
PHP

<?php
namespace Pterodactyl\Observers;
use Pterodactyl\Models\EggVariable;
class EggVariableObserver
{
public function creating(EggVariable $variable): void
{
if ($variable->field_type) {
unset($variable->field_type);
}
}
public function updating(EggVariable $variable): void
{
if ($variable->field_type) {
unset($variable->field_type);
}
}
}