1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +00:00
laravel-tips/content/tips/use-the-shouldbeencrypted-interface-on-a-job-class-to-make-laravel-encrypt-the-jobs-payload.md
2022-03-26 13:32:34 +01:00

13 lines
No EOL
584 B
Markdown

---
title: 'Use the `ShouldBeEncrypted` interface on a job class to make Laravel encrypt the job''s payload'
tweet_id: '1507455546978287617'
thread_slug: weekly-thread-2022-12
author_username: cosmeescobedo
images:
- 'https://pbs.twimg.com/media/FOG28lHUcAAk6Om.jpg'
created_at: 2022-03-25T20:33:04+00:00
slug: use-the-shouldbeencrypted-interface-on-a-job-class-to-make-laravel-encrypt-the-jobs-payload
---
🔥 #Laravel Job Encryption
Since Laravel v8.19.0, you can add the `ShouldBeEncrypted` interface to your job class. Laravel will encrypt the job's payload automatically.