浏览代码

Added new method to get stream Url

procodergw 2 年之前
父节点
当前提交
d519485e06
共有 1 个文件被更改,包括 31 次插入0 次删除
  1. 31 0
      app/Http/Requests/Orion/GetStreamUrl.php

+ 31 - 0
app/Http/Requests/Orion/GetStreamUrl.php

@@ -0,0 +1,31 @@
+<?php
+
+namespace App\Http\Requests\Orion;
+
+use Illuminate\Foundation\Http\FormRequest;
+
+class GetStreamUrl extends FormRequest
+{
+    /**
+     * Determine if the user is authorized to make this request.
+     *
+     * @return bool
+     */
+    public function authorize(): bool
+    {
+        return auth()->check();
+    }
+
+    /**
+     * Get the validation rules that apply to the request.
+     *
+     * @return array<string, mixed>
+     */
+    public function rules(): array
+    {
+        return [
+            "orionId" => "required|string|min:32|max:32",
+            "streamId" => "required|string|min:32|max:32"
+        ];
+    }
+}