| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Http\Requests\V3;
- use Illuminate\Foundation\Http\FormRequest;
- /**
- * `PATCH /v3/me/agent-threads/{thread}` 的入参:局部更新,目前只有标题可改。
- */
- class UpdateMeAgentThreadRequest extends FormRequest
- {
- public function authorize(): bool
- {
- return true;
- }
- /**
- * @return array<string, array<int, mixed>>
- */
- public function rules(): array
- {
- return [
- 'title' => ['sometimes', 'string', 'min:1', 'max:255'],
- ];
- }
- }
|