Using mutators to set properties in your models can really clean up your code. In this snippet, we'll look at an example of automatic password hashing and see how much tidier our controllers end up.
Hey, I'm the founder of Codecourse!
You'll get updates by email, and you can unsubscribe at any time.
© 2023 Codecourse Ltd. All Rights Reserved. Born in the UK.