In this lesson, we'll learn briefly about the model hooks available and how they work. Then, we'll walk through an example by hashing our password anytime it is changed.
???? If You Enjoy This Video, Consider Hitting The Like Button!
???? Subscribe: https://www.youtube.com/adocasts?sub_confirmation=1
???? View on Adocasts: https://adocasts.com/lessons/password-hashing-and-model-hook-overview
???????? Browse the Code: https://github.com/adocasts/lets-learn-adonis-5
???? Check Out More Videos Here:
Creating Records: https://www.youtube.com/watch?v=w4fMW8UJ310
Model Relationships: https://www.youtube.com/watch?v=LewdxJFh7UU
Migration to Model: https://www.youtube.com/watch?v=VmfIQzfxC_0
What Is A Model?: https://www.youtube.com/watch?v=aOxeEQa9s6E
???? Chapters
00:00 - Intro
01:00 - Model Hook Options
03:28 - Bad Plaintext Password Example
05:00 - Auto Hashing Password When Changed
06:50 - Excluding Password When Serialized
08:14 - Outro
--------------------------Socials---------------------------
????️ Website: https://adocasts.com
???? Mastodon: https://fosstodon.org/@adocasts
???? Twitter: https://twitter.com/adocasts
???? Post: https://post.news/tomgobich
???? GitHub: https://github.com/adocasts