We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
Today, I learned that you can encrypt the data using in a queued job in Laravel:
Encrypted Jobs
Laravel allows you to ensure the privacy and integrity of a job's data via encryption. To get started, simply add the
ShouldBeEncrypted
interface to the job class. Once this interface has been added to the class, Laravel will automatically encrypt your job before pushing it onto a queue:use Illuminate\Contracts\Queue\ShouldBeEncrypted; use Illuminate\Contracts\Queue\ShouldQueue; class UpdateSearchIndex implements ShouldQueue, ShouldBeEncrypted { // ... }
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.