spatie/laravel-interacts-with-payload
Inject extra data into the payload of every queued job in your Laravel app. Add keys via a facade (e.g., current user, request context), then access them inside jobs with the InteractsWithPayload trait using getFromPayload().
getFromPayload) may matter in micro-optimized systems (benchmark first).*"This package lets us standardize how data flows into background jobs—like automatically tagging jobs with the user who triggered them or the request context—without rewriting every job. It’s like adding a ‘metadata layer’ to all async tasks, which will:
*"This solves the ‘payload injection problem’ for Laravel jobs elegantly:
Key Ask: "Can we reserve this for [specific initiative] and measure impact on [metric, e.g., ‘job failure rate’ or ‘dev velocity’] in 3 months?"
How can I help you explore Laravel packages today?