Hey Guys! I'm thinking about an option which lets the user update their data. For validation i use Request but i don't know how i can check if the current password is equal to that in the databse. How can i validate it?
Validator::extend('user_password', function ($attribute, $value, $parameters) {
return Hash::check($value, Auth::user()->password);
});
That's my solution.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community