Răsfoiți Sursa

Added new method to get stream Url

procodergw 2 ani în urmă
părinte
comite
d519485e06
1 a modificat fișierele cu 31 adăugiri și 0 ștergeri
  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"
+        ];
+    }
+}