Add /acars/event as alias to /acars/log, and accept event as log line

This commit is contained in:
Nabeel Shahzad
2018-01-28 12:02:41 -06:00
parent 8c3b271294
commit e57f0cb234
3 changed files with 6 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ class LogRequest extends FormRequest
$rules = [
'logs' => 'required|array',
'logs.*.log' => 'required',
'logs.*.event' => 'nullable',
'logs.*.lat' => 'nullable|numeric',
'logs.*.lon' => 'nullable|numeric',
'logs.*.created_at' => 'nullable|date',