File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -79,9 +79,9 @@ public function create(array $data)
7979 'io ' => 'required|numeric|min:10|max:1000 ' ,
8080 'cpu ' => 'required|numeric|min:0 ' ,
8181 'disk ' => 'required|numeric|min:0 ' ,
82- 'service ' => 'bail| required|numeric|min:1|exists:services,id ' ,
83- 'option ' => 'bail| required|numeric|min:1|exists:service_options,id ' ,
84- 'pack ' => 'bail| required|numeric|min:0 ' ,
82+ 'service ' => 'required|numeric|min:1|exists:services,id ' ,
83+ 'option ' => 'required|numeric|min:1|exists:service_options,id ' ,
84+ 'pack ' => 'required|numeric|min:0 ' ,
8585 'startup ' => 'string ' ,
8686 'custom_image_name ' => 'required_if:use_custom_image,on ' ,
8787 'auto_deploy ' => 'sometimes|boolean ' ,
@@ -158,7 +158,7 @@ public function create(array $data)
158158 }
159159
160160 // Validate the Pack
161- if ($ data ['pack ' ] === 0 ) {
161+ if ($ data ['pack ' ] == 0 ) {
162162 $ data ['pack ' ] = null ;
163163 }
164164
You can’t perform that action at this time.
0 commit comments