Disallow 0 as a number for labels per page

This commit is contained in:
snipe 2020-02-04 19:14:58 -08:00
parent 2f0ed129f0
commit 9eb4b0dda7

View file

@ -23,7 +23,7 @@ class Setting extends Model
'slack_endpoint' => 'url|required_with:slack_channel|nullable',
'slack_channel' => 'regex:/(?<!\w)#\w+/|required_with:slack_endpoint|nullable',
'slack_botname' => 'string|nullable',
'labels_per_page' => 'numeric',
'labels_per_page' => 'numeric|min:1',
'labels_width' => 'numeric',
'labels_height' => 'numeric',
'labels_pmargin_left' => 'numeric|nullable',