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
Nasrul Hazim Bin Mohamad -
Bobby Iliev -
Nasrul Hazim Bin Mohamad -
Syahril Zulkefli -
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.