zaber-dev/laravel-context
A lightweight Laravel package for managing shared application context. Store and retrieve contextual data such as request metadata, tenant details, or user settings across middleware, services, and views without passing it manually.
Consider it when:
Look elsewhere or proceed cautiously when:
Executives: This is a small, framework-native library that makes request context—tenant, user, and correlation ID—travel automatically through queues, caches, storage, logs, events, routing, and validation. It reduces a class of tenant-isolation and debugging incidents, shortens mean time to resolution, and supports audit and compliance needs without a platform rewrite. The cost is one dependency plus a convention, versus ongoing bespoke plumbing. The primary risk is project maturity; recommend a scoped pilot on a non-critical service before broad rollout.
Engineering: v1.0.0 is the first stable release of Laravel Context. It centralizes ambient execution context and propagates it across the framework's supported boundaries, replacing hand-threaded context in jobs and listeners and giving consistent context in logs and events. Adopt it to standardize context handling and cut boilerplate; evaluate against your existing tracing setup to avoid duplication, pin the dependency version, and review the upgrade policy given the project's early stage.
How can I help you explore Laravel packages today?