@@ -82,8 +82,8 @@ |
||
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); |