2025-06-17 11:38:46 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Requests;
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @OA\Schema(
|
|
|
|
* schema="ReceiveRoomRegisterRequest",
|
2025-07-01 21:14:45 +08:00
|
|
|
* required={ "email" ,"password" },
|
2025-06-17 11:38:46 +08:00
|
|
|
* @OA\Property(property="email", type="string", example="XX@gmail.com"),
|
|
|
|
* @OA\Property(property="password", type="string", example="XXX"),
|
|
|
|
* )
|
|
|
|
*/
|
|
|
|
class ReceiveRoomRegisterRequest extends ApiRequest
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the validation rules that apply to the request.
|
|
|
|
*
|
|
|
|
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
|
|
|
|
*/
|
|
|
|
public function rules(): array
|
|
|
|
{
|
|
|
|
return [
|
2025-07-01 21:14:45 +08:00
|
|
|
'room_name' => 'nullable|string',
|
|
|
|
'room_ip' => 'nullable|string',
|
2025-06-17 11:38:46 +08:00
|
|
|
'email' => 'required|email',
|
|
|
|
'password' => 'required',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|