Skip to content

Commit 58de612

Browse files
committed
Location should be validated on creation of a server,
1 parent a137e6e commit 58de612

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Repositories/ServerRepository.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function create(array $data)
9292
'disk' => 'required|numeric|min:0',
9393
'service' => 'required|numeric|min:1|exists:services,id',
9494
'option' => 'required|numeric|min:1|exists:service_options,id',
95+
'location' => 'required|numeric|min:1|exists:locations,id',
9596
'pack' => 'sometimes|nullable|numeric|min:0',
9697
'startup' => 'string',
9798
'custom_image_name' => 'required_if:use_custom_image,on',

0 commit comments

Comments
 (0)