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
- Input file with max size validation in laravel
- Redirect to another view from controller in laravel
- How to avoid duplicate entries in pivot table in Laravel
- Post model with title and body in laravel 8
- Send id with route Laravel
- After image selected get validation error in laravel
- How to create and run user seeder in laravel
- How to get file extension from input type file in laravel
- Create project table with model and migration
- How to display serial number in Laravel?
- Laravel onclick function not working
- Method Illuminate\Events\Dispatcher::fire does not exist
- Delete file from amazon s3 bucket using Laravel
- Class App\Http\Controllers\Admin\UserController Does Not Exist
- Laravel form request validation
- Laravel create table migration with model
- How to send ID to another page in Laravel
- Setup laravel project with docker
- How to restore multiple records after soft-deletes in Laravel
- How to check record exist or not in relationship table
- Get ids in array from users table
- How to randomly get the user id from users table in laravel
- Display first n record from collection in laravel view
- If condition in Laravel 9
- How to get single column value in laravel