BaiDuAccountQueryRequest.php 467 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace General\Requests\ChargeReport;
  3. use General\Services\BaseAuthConfig;
  4. use General\Requests\Request;
  5. use Illuminate\Validation\Rule;
  6. class BaiDuAccountQueryRequest extends Request
  7. {
  8. use BaseAuthConfig;
  9. /**
  10. * Get the validation rules that apply to the request.
  11. *
  12. * @return array
  13. */
  14. public function rules()
  15. {
  16. return [
  17. 'phone' => ['required', 'string', Rule::in($this->phones)],
  18. ];
  19. }
  20. }