Fix command validation rules

This commit is contained in:
James Brooks
2016-10-19 12:29:35 +01:00
parent ebf3c8656f
commit 468b2a0b7a
14 changed files with 70 additions and 72 deletions
@@ -77,13 +77,13 @@ final class UpdateComponentCommand
* @var string[]
*/
public $rules = [
'name' => 'string',
'description' => 'string',
'status' => 'int|min:1|max:4',
'link' => 'url',
'order' => 'int',
'group_id' => 'int',
'enabled' => 'bool',
'name' => 'nullable|string',
'description' => 'nullable|string',
'status' => 'nullable|int|min:1|max:4',
'link' => 'nullable|url',
'order' => 'nullable|int',
'group_id' => 'nullable|int',
'enabled' => 'nullable|bool',
];
/**