misc_pterodactyl-panel/app/Http/Requests/Api/Application/Mounts/MountEggsRequest.php

14 lines
325 B
PHP
Raw Normal View History

2022-12-15 00:05:46 +00:00
<?php
namespace Pterodactyl\Http\Requests\Api\Application\Mounts;
use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
class MountEggsRequest extends ApplicationApiRequest
{
public function rules(array $rules = null): array
{
return $rules ?? ['eggs' => 'required|exists:eggs,id'];
}
}