From 4da38891c788d7203b0c88bf70c66cc6830ec2aa Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Mon, 13 Sep 2021 01:53:10 -0600 Subject: [PATCH] admin: fix nest create not working --- app/Http/Requests/Api/Application/Nests/StoreNestRequest.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Http/Requests/Api/Application/Nests/StoreNestRequest.php b/app/Http/Requests/Api/Application/Nests/StoreNestRequest.php index abb72dc5c..126636a73 100644 --- a/app/Http/Requests/Api/Application/Nests/StoreNestRequest.php +++ b/app/Http/Requests/Api/Application/Nests/StoreNestRequest.php @@ -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(); + } }