Support the ongoing development of Laravel.io →
Database Validation Mail
Last updated 2 years ago.
0

You need to get rid of your $,

You are trying to render a variable called $password_temp, which would work if the value was a field name but that isn't what you want.... What you want is to access a field named password_temp.

Change this

$user->$code           = $code;
$user->$password_temp  = Hash::make($password);

To this

$user->code           = $code;
$user->password_temp  = Hash::make($password);
Last updated 2 years ago.
0

Well, now is working. Thank you for your help!

Last updated 2 years ago.
0

You might also want to validate if the email exists

'email' => 'required|email|exists:table,column'
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

vinsbg vinsbg Joined 26 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.