Skip to content

Commit

Permalink
More validation
Browse files Browse the repository at this point in the history
  • Loading branch information
snipe committed Nov 26, 2013
1 parent 3f4ce40 commit e77b477
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/models/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class Location extends Elegant {
'city' => 'required|alpha_dash|min:3',
'state' => 'required|alpha|min:2|max:2',
'country' => 'required|alpha|min:2|max:2',
'zip' => 'alpha_dash|min:5',
);

public function has_users()
Expand Down
1 change: 1 addition & 0 deletions app/models/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class Model extends Elegant {
// Declare the rules for the form validation
protected $rules = array(
'name' => 'required|alpha_dash|min:3',
'modelno' => 'alpha_dash|min:1',
'category_id' => 'required|integer',
);

Expand Down

0 comments on commit e77b477

Please sign in to comment.