Skip to content
Advertisement

passwords dont get hashed in laravel

as the title says..

My project was hashing passwords properly until recently I noticed that passwords of new users dont get hashed while it is supposed to be as I am using Hash::make and I used Hash on the top of the controller. Please Help… here is my User controller I am using laravel 5.6 if this would help…

JavaScript

and here is my model

JavaScript

Advertisement

Answer

use

JavaScript

instead of

JavaScript

You’re not calling your controller function, you’re just doing User::create. that’s why none of your data is being hashed

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement