Skip to content

Commit c9420cd

Browse files
committed
Don't require executable or startup for services
1 parent c97e0fe commit c9420cd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Repositories/ServiceRepository/Service.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)