TicketWithdraw.php 693 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Http\Requests\User;
  3. use Illuminate\Foundation\Http\FormRequest;
  4. class TicketWithdraw extends FormRequest
  5. {
  6. /**
  7. * Get the validation rules that apply to the request.
  8. *
  9. * @return array
  10. */
  11. public function rules()
  12. {
  13. return [
  14. 'withdraw_method' => 'required|in:alipay,paypal,usdt,btc',
  15. 'withdraw_account' => 'required'
  16. ];
  17. }
  18. public function messages()
  19. {
  20. return [
  21. 'withdraw_method.required' => '提现方式不能为空',
  22. 'withdraw_method.in' => '提现方式不支持',
  23. 'withdraw_account.required' => '提现账号不能为空'
  24. ];
  25. }
  26. }