NEW in Laravel 10.10: Cast Password as 'hashed'

preview_player
Показать описание
A new Laravel feature that allows you to not run `bcrypt()` or `Hash::make()` on passwords manually.

- - - - -
Support the channel by checking out my products:

- - - - -
Other places to follow:
Рекомендации по теме
Комментарии
Автор

This feature is so amzing. I think i will start using it.

damienulrichdoevi
Автор

i have been using this as a mutator for years, now i can replace them with the cast. Very good very small changes on my site

janfornication
Автор

I have been doing Hash::make my entire time coding, and this time around I thought of using something fancy and turns out I could cast, and I thought this was a really old thing but turns out it’s pretty new, it is a useful thing wonder why it’s out now

sorry-randomvids
Автор

Is that possible to change it directly using phpmyadmin?

TheWaqaspuri
Автор

Were all 3 methods putting out different hashes?

nnjaFcpalm
Автор

where to find this Feature in the documentation?
i tried but i couldn't find it

abdulbasitsalah
Автор

This feature take config from hashing.driver or it has assing default hasing algorithm like a bcrypt?

pathtic
Автор

Which extension do you use to take this amazing screenshot in your tweet?

amir_hjr
Автор

This should have been there from v5. At least it is here now.

FaizanAnwerAli
Автор

More magic method. Laravel going to be full of magic where you don't know what is going on.

SussanRai
Автор

Sorry i want do decrypt hashed password. I used hash:make

reganmwaigomole
Автор

public function setPasswordAttribute($input)
{
if ($input) {
$this->attributes['password'] = ? Hash::make($input) : $input;
}
}

Guess i won't need this no more in m user model

kingstalker