Download the PHP package devportolio/laravel-dump-viewer without Composer
On this page you can find all versions of the php package devportolio/laravel-dump-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download devportolio/laravel-dump-viewer
More information about devportolio/laravel-dump-viewer
Files in devportolio/laravel-dump-viewer
Package laravel-dump-viewer
Short Description A beautiful, modern in-browser debugging tool for Laravel with persistent storage, real-time updates, and an intuitive interface. Inspired by Spatie Ray.
License MIT
Homepage https://github.com/devportolio/laravel-dump-viewer
Informations about the package laravel-dump-viewer
Laravel Dump Viewer
A beautiful, modern, and powerful in-browser debugging tool for Laravel applications. Inspired by Spatie Ray, but designed as a web-based viewer with persistent storage, real-time updates, and an intuitive interface.
โจ Features
๐ฏ Core Features
- ๐ Web-Based Viewer - View dumps in a beautiful, dedicated web interface
- ๐พ Persistent Storage - Dumps survive page refreshes and stay available across requests
- ๐ Real-Time Updates - Auto-refresh to see new dumps as they arrive
- ๐ท๏ธ Smart Labeling - Organize dumps with custom labels and filter by them
- ๐จ Syntax Highlighting - SQL queries with beautiful formatting
- ๐ Dark/Light Modes - Automatically adapts to your preference
- ๐ฑ Responsive Design - Works perfectly on all screen sizes
๐ Advanced Features
- โก Tinker Support - Works seamlessly in
php artisan tinker - ๐ Smart Detection - Automatically detects and formats SQL queries
- ๐ Collection Handling - Beautifully renders Laravel Collections and Models
- ๐ฏ Multiple Dumps - Dump multiple values in a single call
- ๐ Fluent API - Chain methods like
->label()and->stop() - ๐จ Unique Colors - Each label gets a unique, consistent color
- ๐ Performance Mode - Handles large datasets with smart truncation
๐ฆ Installation
Requirements
- PHP 8.2 or higher
- Laravel 10.x, 11.x, or 12.x
Install via Composer
Publish Configuration (Optional)
Publish Assets (Optional)
๐ฏ Quick Start
Basic Usage
View Your Dumps
After calling dumpx(), open your browser to:
๐ Usage Guide
In Web Requests
In Tinker
Then open the viewer in your browser to see the dumps!
In Artisan Commands
SQL Query Debugging
Eloquent Model Debugging
Collection Debugging
โ๏ธ Configuration
After publishing the config file, you can customize:
Environment Variables
Add to your .env file:
๐จ Interface Features
Header Controls
- ๐ Filter by Label - Click labels to filter dumps
- ๐ Sort Options - Sort by time, label, or file
- โคข Expand/Collapse All - Toggle all dumps at once
- โก Auto-Refresh Toggle - Enable/disable real-time updates
- ๐ Theme Toggle - Switch between dark and light modes
- ๐๏ธ Clear All - Remove all dumps with one click
Dump Item Features
- ๐ Collapsible Content - Click to expand/collapse
- ๐ท๏ธ Color-Coded Labels - Each label has a unique color
- ๐ File Location - Shows file path and line number
- โฐ Timestamp - When the dump was created
- ๐ Type Badge - Shows data type (Array, Model, Collection, etc.)
Keyboard Shortcuts
- Scroll to Bottom Button - In toolbar for quick navigation
- Floating Scroll to Top - Appears when scrolled down
๐ง Advanced Usage
Custom Labels
Multiple Values with Same Label
Stopping Execution
Performance with Large Datasets
๐ญ Use Cases
1. API Development
2. Query Optimization
3. Event Debugging
4. Job Debugging
๐ก๏ธ Security
Production Safety
The dump viewer is designed for development only:
Route Protection
Add authentication middleware:
Access Control
Use custom middleware:
๐ฏ Tips & Best Practices
1. Use Labels Consistently
2. Clean Up Regularly
3. Use in Tinker Workflows
4. Combine with Logs
๐ Comparison with Alternatives
| Feature | dumpx | Ray | Laravel Debugbar | dump/dd |
|---|---|---|---|---|
| Web Interface | โ Yes | โ Desktop App | โ Yes | โ No |
| Persistent Storage | โ Yes | โ Yes | โ Per Request | โ No |
| Tinker Support | โ Yes | โ Yes | โ No | โ Yes |
| Real-time Updates | โ Yes | โ Yes | โ No | โ No |
| Labeling | โ Yes | โ Yes | โ No | โ No |
| Cost | ๐ Free | ๐ฐ Paid | ๐ Free | ๐ Free |
| Setup | โก Easy | ๐ฑ Desktop | โก Easy | โ Built-in |
๐ Troubleshooting
Dumps Not Showing
1. Check if enabled:
2. Check storage driver:
3. Clear cache:
4. Check file permissions:
Tinker Not Working
1. Ensure file driver:
2. Test cache:
3. Manually check dumps:
Route Not Found
1. Check route name:
2. Clear route cache:
3. List routes:
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
The MIT License (MIT). Please see License File for more information.
๐ Credits
- Inspired by Spatie Ray
- Built with Laravel
- Uses Alpine.js for interactivity
- Styled with Tailwind CSS
๐ Links
- Author: Joseph Getaruelas
- Email: [email protected]
- Package: devportolio/laravel-dump-viewer
Made with โค๏ธ for the Laravel community