Weave 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 debug output from any Laravel app to Ray, Spatie's desktop debugging tool. Inspect HTML, arrays, queries, and Markdown, measure performance, and pause execution—all with the familiar dump-style workflow.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Engineering tooling spend and procurement. spatie/laravel-ray is glue code for a commercial desktop app (Ray from Spatie), not a standalone capability. Adopting it commits the org to per-developer Ray licenses after a trial that caps sessions at 20 messages. A PM should treat this as a line item in the developer-experience budget with a clear seat count, not a free Composer dependency — and decide whether that spend is justified by cycle-time gains versus free alternatives (dump(), Telescope, Xdebug, structured logs).

  • Standardizing how the team debugs. The package gives one consistent syntax across Laravel, PHP, JavaScript and other ecosystems for inspecting arrays, HTML, queries, mailables, HTTP client calls, views, jobs and exceptions. If the team is fragmented across ad-hoc dd()/var_dump() and log grepping, this is a cheap way to converge on a shared convention — a decision about process consistency, not features.

  • Build vs. buy for internal debug/observability tooling. Anything internal that streams app state to a local inspector is a candidate for "buy." The changelog shows years of accumulated edge-case handling — query exceptions carrying the failing query, Mail::fake() compatibility, cached-view path handling, Octane compatibility, PHP 8.5 boot-phase fixes, Lumen support. Reproducing that surface area in-house is a poor use of engineering time; the PM decision is to buy the thin package and license the app rather than fund an internal tool.

  • Whether to invest in AI-assisted development workflows. The README and bundled agent skill describe Ray as a target for AI-generated debug output, including an MCP server so AI can send and interact with output. If the roadmap includes AI pair-programming or agent-driven development, this raises a concrete question: do we want a human-visible, interactive output channel for AI work, or do we keep AI working headless and rely on logs? That is a workflow/roadmap decision with real implications for review quality and trust in generated code.

  • Debugging depth for specific roadmap items. Concrete, near-term use cases the PM can attach to delivery work rather than abstract "better tooling":

    • Performance work: query counting and timing, and pausing execution mid-request, to characterize slow endpoints before committing to caching or queue work.
    • Transactional email or notification launches: preview rendered mailables and mail-raw output.
    • Third-party integration work: inspect outbound HTTP client requests/responses.
    • Background processing: surface job payloads and lifecycle events.
    • Test suites: testResponse assertions and the query-builder ray macro during feature-test authoring.
  • Scope and guardrails for instrumentation. Because debug output flows to a local listener over HTTP and is gated by config/env, adopting it implies a policy decision: local-only by default, disabled in staging and production, and no sensitive payloads (PII, credentials, tokens) sent to a desktop app. That policy should be written before rollout, not after an incident.

When to Consider This Package

  • Consider it when: the team is Laravel-first and ships frequently; developers already use Ray or have asked for it; you have a budget line for developer tooling and can absorb per-seat licenses; you want a low-effort, well-maintained debugging layer without owning it; or you are piloting AI-assisted development and want a visible channel for agent output.
  • Consider it specifically for the ecosystem fit: it tracks Laravel releases closely (Laravel 12 and 13 support landed promptly), fixed PHP 8.5 boot issues, and has years of incremental releases. MIT-licensed, no lock-in at the code level, and removable without touching application logic.
  • Look elsewhere or deprioritize when:
    • You cannot fund licenses. The free trial is session-limited by design; a partially licensed team will produce inconsistent practices and shadow workarounds.
    • You need production observability. This is a local debugging aid. For production monitoring, error tracking and tracing, use a hosted APM/error platform; do not plan to run Ray against live traffic.
    • You are not on Laravel/PHP — the value proposition collapses; use the core spatie/ray package or a different tool.
    • Your team already has a debugging standard (Telescope, Xdebug, structured logs with a log viewer) and no clear pain point. Introducing a second channel adds cognitive overhead and a vendor relationship for marginal gain.
    • You require strict vendor consolidation or open-source-only tooling. Ray is a paid closed-source desktop app; the package is only the client.
  • Signal caveats to weigh in the decision: adoption signals here are modest (roughly 320 stars listed, no dependents in this data), which is not unusual for a client package to a paid app and does not indicate poor quality — but it does mean your team will be relatively self-reliant for help, relying on Spatie's docs and issue tracker. Maturity is well-documented (README, changelog, releases), so expect a stable but narrow-scope dependency that you upgrade alongside Laravel major versions.
  • Prerequisite check before you commit: confirm Ray runs on each developer's OS, that firewall/proxy restrictions permit a local HTTP listener on port 23517, and that no policy blocks installing desktop apps on managed laptops. These are the failure modes that quietly kill adoption after the pilot.

How to Pitch It (Stakeholders)

For executives — the ask: a small, per-developer tooling purchase that shortens the loop between "something is wrong" and "I know why," on the framework our product runs on. The package itself is free and MIT-licensed; the cost is Ray licenses for the team. Frame it as cycle-time and onboarding investment, not a platform bet: it is trivially reversible, adds no runtime dependency to production, and requires no infrastructure.

For engineering — why it is safe and worth it: a thin, actively maintained Laravel adapter (tracking Laravel 12/13 and current PHP versions) that turns ad-hoc dd()/log-grepping into one consistent, inspectable stream — queries, mailables, outbound HTTP, views, jobs, exceptions, plus timing and execution pausing. Nothing in application code depends on it, so removing it is a one-line revert.

Explicit guardrails to state up front: local development only; disabled outside local environments; a written rule against sending PII, credentials or customer data to the desktop app; and no expectation that this replaces production monitoring. For teams exploring AI-assisted development, note the MCP/agent integration as the reason to evaluate now rather than later — it is the piece most likely to matter in twelve months.

Decision to be made: approve a pilot with a defined seat count and success criteria (e.g., measurable reduction in time-to-diagnose on a sample of bugs, or onboarding time for new Laravel hires), then decide on full rollout at the end of the license period.

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.
dbravoan/dbcms-admin-theme-dbcms
dbravoan/dbcms-theme-db-cyber
dbravoan/dbcms-blocks-basic
dbravoan/dbcms-module-content-audit
dbravoan/dbcms-module-ai-assistant
paygate-to/paygate-php
padosoft/askmydocs-connector-base
defstudio/supercharged-carbon
bernskioldmedia/laravel-matomo
bernskioldmedia/laravel-harvest
bernskiold/laravel-data-scrubber
bernskiold/laravel-currency-converter
bernskiold/laravel-campaign-monitor
bernskioldmedia/laravel-autotranslate
siberfx/telegram-bot
roy-sandip/laravel-view-extended
gregsphotography/site-builder-core
roy-sandip/laravel-view
anodyne/blade-fluentui-icons
webx-ui/module-catalog-collections