Skip to content
Advertisement

Larave noting save hash password in database

My need create new user in admin dashboard, this store function, but database saving string not hash, please help. When I output via dd(), then the hash working

JavaScript

Model

JavaScript

Advertisement

Answer

JavaScript

This line is overwriting the password field because request()->all() includes password.

Use except() method to remove the fields that you don’t need:

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