spatie/laravel-log-dumper
Adds an ld() helper to dump any values to your Laravel application log using Symfony VarDumper formatting. Log multiple arguments, choose or chain log levels (info/debug/error/etc.), and enable/disable logging when needed.
dd() or var_dump() in production-like environments.VarDumper under the hood. Low maintenance cost with MIT license and active Spatie support.dd() in staging/pre-prod to avoid accidental data leaks.monolog or laravel-logging.ld() adds overhead; avoid in high-frequency loops (e.g., API rate-limiting checks).Log::debug() or Log::info() suffice for simple cases, though lack VarDumper’s depth.For Executives:
"This package lets our devs log any data—objects, arrays, exceptions—with a single function call (ld()), replacing error-prone var_dump() or dd(). It’s like a ‘supercharged’ Log::debug() that auto-formats complex data for debugging. Low risk (MIT license, Spatie-backed), high reward: faster issue resolution and cleaner codebases. We can pilot it in staging to replace dd() calls, then expand to production-like environments for critical workflows. Estimated payback: 2–4 weeks of dev time saved per quarter."
For Engineering:
*"Spatie’s laravel-log-dumper gives us ld(), a drop-in function that dumps any variable to logs using Symfony’s VarDumper—no manual serialization needed. Key benefits:
dd() in non-production; avoids accidental data leaks.ld() as the preferred debugging tool, and phase out var_dump()/dd() in shared codebases. Pair with a log-retention policy for sensitive data."*How can I help you explore Laravel packages today?