spatie/our-ray
Send Ray (myray.app) debug payloads to the cloud using ourray.app. Install via Composer and use the our() helper to forward any ray() calls: our()->ray('my debug data'); Great for sharing logs and debugging output across environments and teams.
dd()/dump()) and ourray.app (a cloud-based Ray viewer). Aligns with initiatives to replace legacy var_dump()/Log::debug() with richer, searchable debugging..env).Log::debug() calls with our()->ray() for richer context (e.g., request IDs, stack traces).Adopt if:
dd(), dump(), or Log::debug() for debugging.Look elsewhere if:
spatie/laravel-ray instead).var_dump() is used).*"This package lets our Laravel engineers debug distributed systems in production—without self-hosting tools or context-switching to local logs. By integrating Ray (a modern
dd()replacement) with ourray.app, we can:
- Reduce MTTR: Debug failures in queues, APIs, or cron jobs via a cloud dashboard (no SSH needed).
- Cut costs: Avoid maintaining a Ray server (~$0 vs. ~$500/year for a self-hosted instance).
- Standardize DX: Replace ad-hoc
var_dump()with structured debugging, improving onboarding.- Scale observability: Works seamlessly with serverless/Lambda, Kubernetes, and multi-region apps.
Ask: Should we pilot this for our [highest-pain debugging scenarios]? Budget: $0 (MIT license)."*
*"Problem: Debugging Laravel apps in production is slow—logs are scattered,
dd()breaks flows, and self-hosting Ray adds ops overhead.Solution:
spatie/our-raylets you:
- Replace
dd()withour()->ray()—payloads auto-sync to ourray.app.- Debug anywhere: See request context, stack traces, and variables in a unified dashboard.
- Zero setup: No Ray server to maintain; works out-of-the-box with Laravel.
- Lightweight: ~50 lines of code to integrate (vs. hours for a custom solution).
How to start:
- Add to
composer.json:composer require spatie/our-ray.- Configure
.env(API key from ourray.app).- Replace
dd($var)withour()->ray($var).Tradeoffs:
- Pros: Cloud-based, no infra, rich payloads.
- Cons: Requires internet (not for air-gapped systems).
Next steps: Let’s test this in [Project X]—focus on debugging [specific pain point]."*
How can I help you explore Laravel packages today?