1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/you-can-implement-the-shouldbeencrypted-interface-on-your-jobs-to-encrypt-their-payload-before-they-get-pushed-to-the-queue.md
2021-11-26 16:21:56 +01:00

814 B

title tweet_id thread_slug author_username images created_at slug
You can implement the ShouldBeEncrypted interface on your jobs to encrypt their payload before they get pushed to the queue 1464247629030703108 weekly-thread-2021-47 pascalbaljet
https://pbs.twimg.com/media/FEyahMTXoAAv8gH.jpg
2021-11-26T15:00:13+00:00 you-can-implement-the-shouldbeencrypted-interface-on-your-jobs-to-encrypt-their-payload-before-they-get-pushed-to-the-queue

💡 Since @laravelphp v8.19, there is a ShouldBeEncrypted interface that jobs can implement. This encrypts the payload, for example, in case the properties hold sensitive data.

As of v8.25, this works for Listeners, Mailables, and Notifications as well 💫

#Laravel #PHP #webdev https://twitter.com/pascalbaljet/status/1462711618329055232