You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
282B

  1. <?php
  2. namespace App\Providers;
  3. use App\Validation\Rule\PositiveIntegerRule;
  4. use Framework\App;
  5. class ValidationExtensionsProvider
  6. {
  7. public function bind(App $app): void
  8. {
  9. $app->resolve('validator')->addRule('positive_integer', new PositiveIntegerRule());
  10. }
  11. }

Powered by TurnKey Linux.