Skip to content

Commit 8e203ed

Browse files
committed
Update LaravelValidateServiceProvider.php
1 parent 8ddaf3e commit 8e203ed

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/LaravelValidateServiceProvider.php

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,4 @@ private function publishConfigFile()
8080
], 'laravel-validate-config');
8181
}
8282

83-
/**
84-
* Load validation in container.
85-
*
86-
* @return void
87-
*/
88-
private function loadValidations()
89-
{
90-
foreach (config('laravel-validate.rules', []) as $rule) {
91-
Validator::extend('validate-'.$rule['name'], function ($attribute, $value, $parameters, $validator) use ($rule) {
92-
$rule = new $rule(...$parameters);
93-
94-
return $rule->passes($attribute, $value);
95-
});
96-
} // Beta
97-
}
9883
}

0 commit comments

Comments
 (0)