OrderByCouponRequest.php 478 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. *
  4. *
  5. * @category xxx
  6. * @package PSR
  7. * @subpackage Documentation\API
  8. * @author xxx <xxx@xxx.com>
  9. * @license GPL https://xxx.com
  10. * @link https://xxx.com
  11. * @ctime: 2020/4/7 15:04
  12. */
  13. namespace App\Http\Requests;
  14. use App\Validators\Rules;
  15. class OrderByCouponRequest extends FormRequest
  16. {
  17. public function rules()
  18. {
  19. return [
  20. 'coupon_id' => Rules::id,
  21. 'order_id' => Rules::id,
  22. ];
  23. }
  24. }