mardi 28 juillet 2020

how to fix id property?

$request->validate([ 'current_password' => 'required',new MatchOldPassword, 'new_password' => 'required', 'new_confirm_password' => 'required|same:new_password', ]); $data = $request->all();

$user=User::find(auth()->user()->id)->update(['password'=> Hash::make($request->new_password)]);

dd('Password change successfully.'); }



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3hI2Cik
via IFTTT

Aucun commentaire:

Enregistrer un commentaire