File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
app/Repositories/ServiceRepository Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ public function create(array $data)
4747 'name ' => 'required|string|min:1|max:255 ' ,
4848 'description ' => 'required|string ' ,
4949 'file ' => 'required|regex:/^[\w.-]{1,50}$/ ' ,
50- 'executable ' => 'required| max:255|regex:/^(.*)$/ ' ,
51- 'startup ' => 'required| string '
50+ 'executable ' => 'max:255|regex:/^(.*)$/ ' ,
51+ 'startup ' => 'string '
5252 ]);
5353
5454 if ($ validator ->fails ()) {
@@ -76,8 +76,8 @@ public function update($id, array $data)
7676 'name ' => 'sometimes|required|string|min:1|max:255 ' ,
7777 'description ' => 'sometimes|required|string ' ,
7878 'file ' => 'sometimes|required|regex:/^[\w.-]{1,50}$/ ' ,
79- 'executable ' => 'sometimes|required| max:255|regex:/^(.*)$/ ' ,
80- 'startup ' => 'sometimes|required| string '
79+ 'executable ' => 'sometimes|max:255|regex:/^(.*)$/ ' ,
80+ 'startup ' => 'sometimes|string '
8181 ]);
8282
8383 if ($ validator ->fails ()) {
You can’t perform that action at this time.
0 commit comments