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

23 lines
427 B
PHP
Raw Normal View History

<?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);
}
}
}