#Returns true instead of hashed password?
77 messages · Page 1 of 1 (latest)
no idea/
https://laravel.com/api/5.8/Illuminate/Database/Eloquent/Model.html#method_save Save returns a bool.
You are getting what you should back.
5.8
Oops
gee grandpa
I googled https://www.google.com/search?q=laravel+model+save+api&oq=laravel+model+save+api&aqs=chrome..69i57.6741j0j7&sourceid=chrome&ie=UTF-8 and it was the first result, didn't realize it was linking to 5.8
?
Im new to laravel
None of them are going to return the data you're filling.
What are you trying to do?
hashing new_password
You're doing that.
and wanna update the password for the user
yes it STORE Data
but
not the correct data
i have try'd login with the new set password
but seems it didn't store the new password data i have put in.
Do you have password set as mass assignable?
idk what u mean by assignable
can u give me example if i'm not correct?
that is not problem i think
where is that file located at?
Usually it is at \App\Models\User
Yeah, password is fillable. So that is good, it is something else then. Log a temporary variable for your hashed password and then compare it to what is stored in the DB to make sure it is being updated.
Dude, what on earth is this? You don’t define properties like this in an Eloquent model.
Hm, I didn't even notice that.
this my controller
Try dd($request->new_password) and see if it has your data in it.
correct data yes
And did you dump the Hashed password and compared to what is being stored in your DB to make sure they match?
'password' => Hash::make($request->$this->new_password),
ERROR: Object of class App\Http\Livewire\Admin\classname could not be converted to string
because it worked before in dd method
ok i already had it like that
i will try again
I have looked in db and the hash changed into other hash
could be a login problem?
Could be if your hash is uploading - did you do a custom login?
should not be the problem
i think it's a custom login
Show the code
How could I possibly know where you put your custom login code?
this is my internship project
i don't know either
any way
Thanks for trying to help : )
Np.
Its possible you're not hashing the password you are authenticating with whereever you're doing it.
So try to track that down.
You too