Passed
Push — 1.x ( bb24ad...d32e55 )
by Milwad
04:56 queued 02:02
created
src/LaravelValidateServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,8 @@
 block discarded – undo
82 82
      */
83 83
     private function loadValidations()
84 84
     {
85
-        foreach (config('laravel-validate.rules', []) as $rule) {
86
-            Validator::extend('validate-'.$rule['name'], function ($attribute, $value, $parameters, $validator) use ($rule) {
85
+        foreach (config('laravel-validate.rules', [ ]) as $rule) {
86
+            Validator::extend('validate-'.$rule[ 'name' ], function($attribute, $value, $parameters, $validator) use ($rule) {
87 87
                 $rule = new $rule(...$parameters);
88 88
 
89 89
                 return $rule->passes($attribute, $value);
Please login to merge, or discard this patch.