langleyfoxall / laravel-nist-password-rules

🔒 Laravel validation rules that follow the password related recommendations found in NIST Special Publication 800-63B section 5.
GNU Lesser General Public License v3.0
208 stars 49 forks source link

Interface 'Illuminate\Contracts\Validation\Rule' not found (Laravel 5.4) #28

Closed mirko77 closed 3 years ago

mirko77 commented 4 years ago
FatalErrorException in SequentialCharacters.php line 13:
Interface 'Illuminate\Contracts\Validation\Rule' not found

when calling


// Register
        $this->validate($request, [
            'email' => 'required',
            'password' => PasswordRules::register($request->email),
        ]);

on Laravel 5.4

Any suggestions?

DivineOmega commented 4 years ago

It looks like the Rule interface we're using here is only available on Laravel 5.5 and above. We may need to change the package's minimum Laravel version if there is no alternative interface.

DivineOmega commented 3 years ago

I'm afraid we've had to set the minimum supported Laravel version to 5.5 now for ease of maintenance.