Skip to content

Commit

Permalink
latitude & longitude validation rules
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed Oct 4, 2023
1 parent ec1df8c commit 2bb6091
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Requests/FormRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function rules()
'email' => 'nullable|email:rfc,dns|max:255',
'website' => 'nullable|url|max:255',
'phone' => 'nullable|max:255',
'latitude' => 'nullable|max:255',
'longitude' => 'nullable|max:255',
'latitude' => 'nullable|numeric|between:-90,90',
'longitude' => 'nullable|numeric|between:-180,180',
];
}
}

0 comments on commit 2bb6091

Please sign in to comment.