Update validation rules for remote activity logs (#4526)
This commit is contained in:
parent
9b218f2190
commit
4032481a4f
1 changed files with 2 additions and 2 deletions
|
@ -17,11 +17,11 @@ class ActivityEventRequest extends FormRequest
|
|||
return [
|
||||
'data' => ['required', 'array'],
|
||||
'data.*' => ['array'],
|
||||
'data.*.user' => ['present', 'uuid'],
|
||||
'data.*.user' => ['sometimes', 'nullable', 'uuid'],
|
||||
'data.*.server' => ['required', 'uuid'],
|
||||
'data.*.event' => ['required', 'string'],
|
||||
'data.*.metadata' => ['present', 'nullable', 'array'],
|
||||
'data.*.ip' => ['present', 'ip'],
|
||||
'data.*.ip' => ['sometimes', 'nullable', 'ip'],
|
||||
'data.*.timestamp' => ['required', 'string'],
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue