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.'); }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire