Class 'App\Rules\Hash' not found in Laravel

Created at 05-Jul-2021 , By samar

This error occurs when you forget to import class Hash to your MatchOldPassword rules in app\Rules directory. To avoid this error Class 'App\Rules\Hash' not found you have to import Hash facade in your match old password rule.

  • Class 'App\Rules\Hash' not found

    --PATH app\Rules\MatchOldPassword.php
    use Illuminate\Support\Facades\Hash;
    

    You have to import Hash facade in your match old password rule in app\Rules\MatchOldPassword.php file.

Back to code snippet queries related laravel

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Buy Me A Coffee

Don't forget to share this article! Help us spread the word by clicking the share button below.

We appreciate your support and are committed to providing you valuable and informative content.

We are thankful for your never ending support.