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

View File

@@ -61,9 +61,12 @@ class AddComponentCommand
* @var string[]
*/
public $rules = [
'name' => 'required|string',
'status' => 'required|integer',
'link' => 'url',
'name' => 'required|string',
'description' => 'string',
'status' => 'required|integer',
'link' => 'url',
'order' => 'integer',
'group_id' => 'integer',
];
/**