Class 'App\Rules\Hash' not found in Laravel
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.phpuse Illuminate\Support\Facades\Hash;
You have to import Hash facade in your match old password rule in app\Rules\MatchOldPassword.php file.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
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.
Random Code Snippet Queries: Laravel
- Drop foreign key column in Laravel using migration
- How to display serial number in Laravel?
- Insert Comma Separated Values in laravel
- How to remove P tag from CkEditor in Laravel?
- How to create static page in Laravel
- Method Illuminate\Http\Request::validated does not exist
- How to get CSRF token in laravel controller
- How to add background image to div using Tailwindcss, Vite in Laravel Environment
- Send id with route Laravel
- How to check relationship is loaded or not in Laravel
- Target class [App\Http\Controllers\Auth\Request] does not exist.
- Order by multiple columns in Laravel
- How to check column value of a record is null or not in laravel
- Update if exist else insert new record in laravel
- Print query in laravel
- In order to use the Auth::routes() method, please install the laravel/ui package
- Call to undefined method App\Models\User::follow()
- Laravel 9 route group with controller
- How to restore deleted records in laravel
- How to return a column with different name in Laravel
- Laravel create default admin user
- How to use or operator in laravel
- Call to a member function update() on null
- How to pass data to partial view file in laravel
- Wheredate in laravel not working