Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

lat long in laravel validation

// Row 5
'lat' => ['required', 'regex:/^[-]?(([0-8]?[0-9]).(d+))|(90(.0+)?)$/'],
'long' => ['required', 'regex:/^[-]?((((1[0-7][0-9])|([0-9]?[0-9])).(d+))|180(.0+)?)$/'],
 
PREVIOUS NEXT
Tagged: #lat #long #laravel #validation
ADD COMMENT
Topic
Name
3+1 =