Commit b34fabdf authored by Maik Messerschmidt's avatar Maik Messerschmidt
Browse files

Allow max_uses to be empty.

parent 4c4d402a
......@@ -43,7 +43,7 @@ class StoreInput extends FormRequest {
return [
"id" => 'required|unique:inputs',
"id_length" => 'required|integer|gt:0',
"max_uses" => 'integer|gte:0',
"max_uses" => 'nullable|integer|gte:0',
"increments" => Rule::in(Input::INCREMENT_MODES),
"data" => $this->get('format') === 'json' ? 'required|JSON' : 'required'
];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment