admin: fix nest create not working

This commit is contained in:
Matthew Penner 2021-09-13 01:53:10 -06:00
parent 004a13a5f7
commit 4da38891c7
No known key found for this signature in database
GPG key ID: 030E4AB751DC756F

View file

@ -2,8 +2,13 @@
namespace Pterodactyl\Http\Requests\Api\Application\Nests;
use Pterodactyl\Models\Nest;
use Pterodactyl\Http\Requests\Api\Application\ApplicationApiRequest;
class StoreNestRequest extends ApplicationApiRequest
{
public function rules(array $rules = null): array
{
return $rules ?? Nest::getRules();
}
}