Added status value validation to commands

This commit is contained in:
James Brooks
2015-11-07 11:20:45 +00:00
parent c75579779f
commit a70d9ce530
3 changed files with 4 additions and 4 deletions

View File

@@ -70,7 +70,7 @@ final class AddComponentCommand
public $rules = [
'name' => 'required|string',
'description' => 'string',
'status' => 'required|int',
'status' => 'int|min:1|max:4',
'link' => 'url',
'order' => 'int',
'group_id' => 'int',