Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Ray Laravel Package

spatie/laravel-ray

Send Laravel debug output to Ray, Spatie’s desktop debugging app. Use a consistent API to inspect variables, arrays, HTML, queries and more, measure performance, and pause execution. Works across Laravel/PHP with Ray’s rich UI.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Debugging & Developer Experience (DX):

    • Feature: Integrate a unified debugging tool (Ray) to replace fragmented debugging methods (e.g., dd(), Log::debug(), IDE logs). This reduces context-switching and improves developer productivity.
    • Roadmap: Prioritize developer tools that reduce cognitive load, especially for complex Laravel applications with heavy API/database interactions.
    • Build vs. Buy: Buy—this is a mature, battle-tested solution with minimal maintenance overhead. Avoid reinventing debugging infrastructure.
  • Observability for Non-Production Environments:

    • Use Case: Enable real-time debugging in staging/QA environments where production-grade tools (e.g., Sentry, Datadog) are overkill but dd()/var_dump() are insufficient.
    • Roadmap: Expand debugging capabilities beyond logs to include query inspection, request/response payloads, and Blade template variables.
  • Onboarding & Training:

    • Feature: Standardize debugging practices across teams by adopting a single tool (Ray) with consistent syntax (e.g., ray($variable) instead of mixed Log::/dd() calls).
    • Use Case: Reduce ramp-up time for new developers by providing a familiar, cross-language debugging interface (supports PHP, JS, etc.).
  • Performance Profiling:

    • Feature: Leverage Ray’s "measure" directive to identify bottlenecks in Laravel services, middleware, or custom logic without external tools like Blackfire.
    • Roadmap: Integrate performance metrics into CI/CD pipelines to flag slow endpoints early.
  • Security & Compliance:

    • Use Case: Debug sensitive data (e.g., API responses, user inputs) in a controlled environment (Ray’s local desktop app) without logging to files/databases, reducing exposure risks.
    • Build vs. Buy: Buy—Ray’s local-first approach aligns with security best practices (no remote logging of PII).

When to Consider This Package

Adopt This Package If:

  • Your team relies on Laravel and struggles with fragmented debugging (e.g., mixing dd(), Log::debug(), IDE logs, or external tools).
  • You need real-time debugging in local/staging environments with rich output (HTML, queries, arrays, Markdown).
  • Developers spend excessive time context-switching between tools (e.g., browser dev tools, IDE logs, database clients).
  • You want to standardize debugging across frontend (JS) and backend (PHP) teams using a single tool (Ray supports both).
  • Your app has complex workflows (e.g., queues, jobs, scheduled tasks) where traditional dd() breaks execution flow.
  • You’re using Laravel 11+ and need a maintained, actively updated solution (last release: 2026-04-28).
  • You prioritize developer productivity over minimalist debugging (e.g., dd()) and can justify the free trial → paid license cost (~$50–$100/year).

Look Elsewhere If:

  • Your team prefers minimalism and only needs dd()/var_dump() for quick checks.
  • You’re debugging production issues and need structured logging (e.g., ELK stack, Datadog) or error tracking (e.g., Sentry).
  • Your app is PHP-only and you’re comfortable with Tideways/Xdebug for profiling.
  • You’re constrained by budget and cannot justify the Ray license (free tier is limited to 20 messages/session).
  • Your stack is not Laravel (though Ray supports PHP generally, Laravel-specific features may not apply).
  • You need distributed tracing or APM features (consider Laravel Telescope or Blackfire instead).

How to Pitch It (Stakeholders)

For Executives (Business/Tech Leads):

"Laravel-Ray integrates Ray, a desktop debugging tool, into our Laravel apps to cut debugging time by 30–50% by replacing fragmented tools (logs, dd(), IDEs) with a unified, real-time interface. This reduces developer frustration, speeds up feature delivery, and aligns with our goal of improving DX. The free tier covers most use cases, with a low-cost license (~$50/year) to unlock full features. Competitors like Sentry or Datadog are overkill for local/staging debugging and don’t offer the same developer ergonomics. Pilot this in QA to measure impact on dev velocity."

Key Metrics to Track:

  • Reduction in time spent debugging (pre/post adoption).
  • Fewer production bugs caused by undetected edge cases in staging.
  • Developer satisfaction surveys (e.g., "How often do you switch tools to debug?").

For Engineering Teams (Devs/Architects):

*"Ray gives us superpowers for Laravel debugging:

  • Replace dd()/Log::debug() with ray($variable)—rich output for arrays, queries, HTML, and even Blade templates.
  • Inspect database queries in real-time with context (bindings, execution time).
  • Profile performance with @measure directives (no need for Blackfire in most cases).
  • Debug queues/jobs without breaking execution flow.
  • Works locally (no remote logging risks) and integrates with our existing Laravel stack.

Setup is trivial (10-minute composer require + config), and the free tier covers 90% of use cases. The paid license unlocks unlimited messages and team collaboration features. Let’s pilot it in [Project X] to compare against our current dd()/Log:: workflow."*

Why This Over Alternatives:

Tool Pros Cons Fit for Ray
dd()/var_dump() Simple, no setup Breaks execution, no context ❌ Too primitive
Laravel Telescope Great for production logs Overkill for local debugging ❌ Not real-time/rich
Xdebug Powerful profiling Steep learning curve ❌ Complex for ad-hoc debugging
Sentry Production error tracking Not for local debugging ❌ Wrong use case
Ray Real-time, rich, cross-language Paid after free tier ✅ Best for Laravel DX

Action Items:

  1. Install in [staging environment] and test with ray() vs. current workflow.
  2. Train team on ray() vs. dd()/Log::debug() (5-minute cheat sheet).
  3. Evaluate if the paid license is needed for team size.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope
anil/file-picker
broqit/fields-ai