This commit is contained in:
James Cole 2019-01-28 18:21:22 +01:00
parent d905849b71
commit 8607fd4997
2 changed files with 2 additions and 2 deletions

View File

@ -74,7 +74,7 @@ class TagRequest extends Request
'description' => 'min:1|nullable',
'date' => 'date|nullable',
'latitude' => 'numeric|min:-90|max:90|nullable|required_with:longitude',
'longitude' => 'numeric|min:-90|max:90|nullable|required_with:latitude',
'longitude' => 'numeric|min:-180|max:180|nullable|required_with:latitude',
'zoom_level' => 'numeric|min:0|max:80|nullable',
];
switch ($this->method()) {

View File

@ -92,7 +92,7 @@ class TagFormRequest extends Request
'description' => 'min:1|nullable',
'date' => 'date|nullable',
'latitude' => 'numeric|min:-90|max:90|nullable',
'longitude' => 'numeric|min:-90|max:90|nullable',
'longitude' => 'numeric|min:-180|max:180|nullable',
'zoom_level' => 'numeric|min:0|max:80|nullable',
];
}