Blame view

public/vendor/illuminate/contracts/Validation/Validator.php 1.36 KB
86143e36f   Андрей Ларионов   Коммит вторник
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
  <?php
  
  namespace Illuminate\Contracts\Validation;
  
  use Illuminate\Contracts\Support\MessageProvider;
  
  interface Validator extends MessageProvider
  {
      /**
       * Run the validator's rules against its data.
       *
       * @return array
       *
       * @throws \Illuminate\Validation\ValidationException
       */
      public function validate();
  
      /**
       * Get the attributes and values that were validated.
       *
       * @return array
       *
       * @throws \Illuminate\Validation\ValidationException
       */
      public function validated();
  
      /**
       * Determine if the data fails the validation rules.
       *
       * @return bool
       */
      public function fails();
  
      /**
       * Get the failed validation rules.
       *
       * @return array
       */
      public function failed();
  
      /**
       * Add conditions to a given field based on a Closure.
       *
       * @param  string|array  $attribute
       * @param  string|array  $rules
       * @param  callable  $callback
       * @return $this
       */
      public function sometimes($attribute, $rules, callable $callback);
  
      /**
       * Add an after validation callback.
       *
       * @param  callable|string  $callback
       * @return $this
       */
      public function after($callback);
  
      /**
       * Get all of the validation error messages.
       *
       * @return \Illuminate\Support\MessageBag
       */
      public function errors();
  }