wire-elements/wire-spy
WireSpy is a sleek debug bar for Laravel Livewire. Inspect component state, edit it live, and time-travel through changes to find issues fast. Track dispatched events with payloads and source component, plus hot reload for automatic refresh while you develop.
Install via composer require wire-elements/wire-spy --dev, then refresh your Livewire app in the browser. Press CMD+L (macOS) or CTRL+L (Windows/Linux) to toggle the debug bar—no extra setup required. On first launch, the bar opens in State view by default; click a component in the DOM to see its current public properties and methods. Use the Component Tree tab to navigate complex hierarchies, or the Events tab to see real-time dispatches (e.g., wire:click, livewire:hmr).
updated() hooks.updatedFoo) or component class to trace race conditions or confirm when data is sent to the server.count from 5 to -1), then trigger actions to reproduce edge cases—no code redeploy needed.livewire.config('hot_module_replacement' => true), edit component PHP/Blade files and see updated state instantly reflected in WireSpy’s panel—no manual reloads.WIRE_SPY_ENABLED=false in .env for non-local environments—no manual guards or service provider conditional registration needed.livewire.php config for hot_module_replacement, run php artisan config:clear, and ensure APP_ENV=local.vendor:publish creates config/wire-spy.php. In containerized builds, explicitly set WIRE_SPY_ENABLED=false in CI environment variables to avoid accidental asset injection.CTRL+L may conflict with browser devtools (e.g., Firefox’s “Open Location Bar”). Override keybindings in config/wire-spy.php (e.g., key_binding => 'shift+\\') for consistency.How can I help you explore Laravel packages today?