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.
$user->$code = $code; $user->$password_temp = Hash::make($password);
$user->code = $code; $user->password_temp = Hash::make($password);
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us