From 0c4e643030dd765824a797406f608268b08d902a Mon Sep 17 00:00:00 2001 From: Jeroen Smit Date: Wed, 19 Feb 2020 14:37:20 +0100 Subject: [PATCH] Remove the need for the Str facade --- .../PasswordStrength/PasswordStrengthServiceProvider.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Schuppo/PasswordStrength/PasswordStrengthServiceProvider.php b/src/Schuppo/PasswordStrength/PasswordStrengthServiceProvider.php index b1df2ef..24ffec6 100644 --- a/src/Schuppo/PasswordStrength/PasswordStrengthServiceProvider.php +++ b/src/Schuppo/PasswordStrength/PasswordStrengthServiceProvider.php @@ -4,6 +4,7 @@ use Illuminate\Contracts\Validation\Factory; use Illuminate\Support\ServiceProvider; +use Illuminate\Support\Str; use Illuminate\Translation\Translator; class PasswordStrengthServiceProvider extends ServiceProvider @@ -35,7 +36,7 @@ public function boot(Factory $validator) $translator = app('passwordStrength.translationProvider')->get($validator); foreach(['letters', 'numbers', 'caseDiff', 'symbols'] as $rule) { - $snakeCasedRule = \Str::snake($rule); + $snakeCasedRule = Str::snake($rule); $validator->extend($rule, function ($_, $value, $__) use ($passwordStrength, $rule) { $capitalizedRule = ucfirst($rule);