Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

Application modulaire fonctionnelle !

Emmanuel ROY authored on 12/08/2019 15:10:25
Showing 1 changed files
1 1
deleted file mode 100644
... ...
@@ -1,61 +0,0 @@
1
-<?php
2
-
3
-namespace Illuminate\Contracts\Validation;
4
-
5
-use Illuminate\Contracts\Support\MessageProvider;
6
-
7
-interface Validator extends MessageProvider
8
-{
9
-    /**
10
-     * Run the validator's rules against its data.
11
-     *
12
-     * @return array
13
-     */
14
-    public function validate();
15
-
16
-    /**
17
-     * Get the attributes and values that were validated.
18
-     *
19
-     * @return array
20
-     */
21
-    public function validated();
22
-
23
-    /**
24
-     * Determine if the data fails the validation rules.
25
-     *
26
-     * @return bool
27
-     */
28
-    public function fails();
29
-
30
-    /**
31
-     * Get the failed validation rules.
32
-     *
33
-     * @return array
34
-     */
35
-    public function failed();
36
-
37
-    /**
38
-     * Add conditions to a given field based on a Closure.
39
-     *
40
-     * @param  string|array  $attribute
41
-     * @param  string|array  $rules
42
-     * @param  callable  $callback
43
-     * @return $this
44
-     */
45
-    public function sometimes($attribute, $rules, callable $callback);
46
-
47
-    /**
48
-     * Add an after validation callback.
49
-     *
50
-     * @param  callable|string  $callback
51
-     * @return $this
52
-     */
53
-    public function after($callback);
54
-
55
-    /**
56
-     * Get all of the validation error messages.
57
-     *
58
-     * @return \Illuminate\Support\MessageBag
59
-     */
60
-    public function errors();
61
-}
Browse code

initial commit

Emmanuel ROY authored on 09/08/2019 08:39:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
1
+<?php
2
+
3
+namespace Illuminate\Contracts\Validation;
4
+
5
+use Illuminate\Contracts\Support\MessageProvider;
6
+
7
+interface Validator extends MessageProvider
8
+{
9
+    /**
10
+     * Run the validator's rules against its data.
11
+     *
12
+     * @return array
13
+     */
14
+    public function validate();
15
+
16
+    /**
17
+     * Get the attributes and values that were validated.
18
+     *
19
+     * @return array
20
+     */
21
+    public function validated();
22
+
23
+    /**
24
+     * Determine if the data fails the validation rules.
25
+     *
26
+     * @return bool
27
+     */
28
+    public function fails();
29
+
30
+    /**
31
+     * Get the failed validation rules.
32
+     *
33
+     * @return array
34
+     */
35
+    public function failed();
36
+
37
+    /**
38
+     * Add conditions to a given field based on a Closure.
39
+     *
40
+     * @param  string|array  $attribute
41
+     * @param  string|array  $rules
42
+     * @param  callable  $callback
43
+     * @return $this
44
+     */
45
+    public function sometimes($attribute, $rules, callable $callback);
46
+
47
+    /**
48
+     * Add an after validation callback.
49
+     *
50
+     * @param  callable|string  $callback
51
+     * @return $this
52
+     */
53
+    public function after($callback);
54
+
55
+    /**
56
+     * Get all of the validation error messages.
57
+     *
58
+     * @return \Illuminate\Support\MessageBag
59
+     */
60
+    public function errors();
61
+}