Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

32 lignes
608B

  1. <?php
  2. namespace App\Http\Controllers\Web;
  3. abstract class Rule
  4. {
  5. public static function email(): array
  6. {
  7. $ret = [];
  8. $ret[] = "email:strict,filter,dns";
  9. $ret[] = "max:255";
  10. return $ret;
  11. }
  12. public static function id(): array
  13. {
  14. return ["uuid"];
  15. }
  16. public static function parkingManagementCode(): array
  17. {
  18. return ["regex:/^[0-9]{5}$/"];
  19. }
  20. public static function shopNo(): array
  21. {
  22. return ["between:0,99"];
  23. }
  24. public static function discountTicketCode(): array
  25. {
  26. return ["between:0,99"];
  27. }
  28. }