return User::create([
'password' => bcrypt($data['password']),
]);
For further actions, you may consider blocking this person and/or reporting abuse
return User::create([
'password' => bcrypt($data['password']),
]);
For further actions, you may consider blocking this person and/or reporting abuse
Dawid Makowski -
webfuelcode -
Nasrul Hazim Bin Mohamad -
MD ARIFUL HAQUE -
Top comments (2)
The proper way of hashing a password in laravel would be using the Hash facade:
'password' => Hash::make($data['password'])
Official Documentation: laravel.com/docs/10.x/hashing#hash...
Thankyou bro for your insight, this may be can help me to.