misc_pterodactyl-panel/app/Http/Requests/Api/Application/Eggs/StoreEggRequest.php

14 lines
328 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Api\Application\Eggs;
use Pterodactyl\Models\Egg;
use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
class StoreEggRequest extends ApplicationApiRequest
{
public function rules(array $rules = null): array
{
return $rules ?? Egg::getRules();
}
}