Fixes and validation rules

This commit is contained in:
Joseph Cohen
2015-09-24 23:07:39 -05:00
parent 354bfffc97
commit 3f8471d8da
12 changed files with 108 additions and 29 deletions
+6 -3
View File
@@ -68,13 +68,16 @@ class AddMetricCommand
* @var string[]
*/
public $rules = [
'name' => 'required',
'suffix' => 'required',
'name' => 'required|string',
'suffix' => 'required|string',
'description' => 'string',
'display_chart' => 'boolean',
'default_value' => 'numeric',
'calc_type' => 'integer',
'display_chart' => 'integer',
'places' => 'numeric|min:0|max:4',
];
/**
* Create a new add metric command instance.
*