Skip to content

Commit

Permalink
Fixes #451 - allows spaces in state name
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Jan 22, 2015
1 parent 4a77dee commit d85e524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ class Location extends Elegant
protected $rules = array(
'name' => 'required|alpha_space|min:3|max:255|unique:locations,name,{id}',
'city' => 'required|alpha_space|min:3|max:255',
'state' => 'required|alpha|min:2|max:32',
'country' => 'required|alpha|min:2|max:2|max:2',
'state' => 'required|alpha_space|min:2|max:32',
'country' => 'required|alpha_space|min:2|max:2|max:2',
'address' => 'required|alpha_space|min:5|max:80',
'address2' => 'alpha_space|min:5|max:80',
'zip' => 'alpha_dash|min:3|max:10',
Expand Down

0 comments on commit d85e524

Please sign in to comment.