Vigyata.AI
Is this your channel?
GithubGithub02

18 Add 'hashed' cast

This PR adds the new 'hashed' cast, which I showed with the User password field. It removes the need to remember Hash::make() everywhere, because Laravel will hash the value automatically when you save.

Buy on Github

You'll be taken to Github to complete your purchase.

Pros

  • +Automatically hashes sensitive attributes like passwords
  • +Cleaner models and less chance of forgetting Hash::make()

Cons

  • -If you don’t understand casts, it may feel “too automatic” at first

Featured in this video