Download the PHP package renoki-co/laravel-chained-jobs-shared-data without Composer
On this page you can find all versions of the php package renoki-co/laravel-chained-jobs-shared-data. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-chained-jobs-shared-data
Laravel Chained Jobs Shared Data
Chained Jobs Shared Data is a package that helps you share some data (usually an array) between chained jobs.
🤝 Supporting
Renoki Co. on GitHub aims on bringing a lot of open source projects and helpful projects to the world. Developing and maintaining projects everyday is a harsh work and tho, we love it.
If you are using your application in your day-to-day job, on presentation demos, hobby projects or even school projects, spread some kind words about our work or sponsor our work. Kind words will touch our chakras and vibe, while the sponsorships will keep the open source projects alive.
🚀 Installation
You can install the package via composer:
🙌 Usage
You just have to replace the default job's Dispatchable
and Queueable
traits with the ones provided by this package.
Use Case
The main use case is to share some data between chained jobs, while being able to modify it and be retrieved in the next jobs with the previous modifications.
The CreateApiKey
and MakeTestApiCall
are the jobs that depend by the CreateUser
at glance.
Without using this package's traits, the only workaround would be to trigger the in the CreateUser
job, then trigger the next one, and the next one, etc. and you will end up bad code to manage and troubleshoot.
If all job classes use the previous mentioned traits, having some shared data is going to ease the job:
🐛 Testing
🤝 Contributing
Please see CONTRIBUTING for details.
🔒 Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
🎉 Credits
- Alex Renoki
- All Contributors