Blame view

public/vendor/illuminate/contracts/Validation/Rule.php 396 Bytes
86143e36f   Андрей Ларионов   Коммит вторник
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <?php
  
  namespace Illuminate\Contracts\Validation;
  
  interface Rule
  {
      /**
       * Determine if the validation rule passes.
       *
       * @param  string  $attribute
       * @param  mixed  $value
       * @return bool
       */
      public function passes($attribute, $value);
  
      /**
       * Get the validation error message.
       *
       * @return string|array
       */
      public function message();
  }