ShowAgentQuotaRequest.php 495 B

1234567891011121314151617181920212223242526
  1. <?php
  2. namespace App\Http\Requests\V3;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. /**
  5. * `GET /v3/agent-quota` 的入参。登录用户靠 bearer,游客带设备匿名 id。
  6. */
  7. class ShowAgentQuotaRequest extends FormRequest
  8. {
  9. public function authorize(): bool
  10. {
  11. return true;
  12. }
  13. /**
  14. * @return array<string, array<int, mixed>>
  15. */
  16. public function rules(): array
  17. {
  18. return [
  19. 'device_id' => ['nullable', 'uuid'],
  20. ];
  21. }
  22. }