Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ARC-Support
public projects
lou-server
Commits
b34fabdf
Commit
b34fabdf
authored
Oct 01, 2021
by
Maik Messerschmidt
Browse files
Allow max_uses to be empty.
parent
4c4d402a
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Requests/StoreInput.php
View file @
b34fabdf
...
...
@@ -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'
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment