Installation
With LaraDumps, you can go right into debugging with minimal effort:
Download the LaraDumps Desktop App.
Install one of the LaraDumps PHP Packages according to your project stack.
You may also install the Global LaraDumps package to make LaraDumps available in all projects in your computer.
Start Debugging!
Desktop App
LaraDumps Desktop App is available for Windows, Linux and macOS.
Proceed to the installation instructions according to your operating system:
Install via 🍺 Homebrew
- First, make sure Homebrew it is up to date. Run the following command:
brew update- Then, add Homebrew LaraDumps tap. Run the following command:
brew tap laradumps/app- Next, install the LaraDumps app. Run the following command:
brew install --cask laradumps/app/laradumpsNow, just open the App!
📝 NOTE: If you receive an "application damaged" error, read the section Running the app in this page.
To upgrade the app using Homebrew, run:
brew upgrade --cask laradumpsTo uninstall the app using Homebrew, run:
brew uninstall laradumps/app/laradumpDisk image .dmg
Alternatively, you can download and install the LaraDumps App using its disk image.
📝 NOTE: If you receive an "application damaged" error, read the section Running the app in this page.
Running the app
Once downloaded, open the file and drag & drop the LaraDumps app into your Applications folder.
Authorizing the app
The first time you open LaraDumps, you will receive an alert saying LaraDumps cannot be opened.
Don't worry! This is just because the app code is not signed with Apple. LaraDumps is not malicious software and all code is open-source.
To authorize LaraDumps to run, follow these steps:
1․ Click on the (Apple logo) on the top menu.
2․ Go to System Preferences.
3․ Open the Security & Privacy tab.
4․ Click on the 🔒 (lock pad) and enter your password to authenticate.
5․ Click Open Anyway for LaraDumps.
6․ Once again, click Open when you are prompted about "This is an Internet Application".
Now, LaraDumps should run just fine!
PHP Packages
Laravel Package
Requirements: PHP 8.2+ and Laravel 11+
1․ Install LaraDumps Package in your Laravel project using Composer.
Run the command:
composer require laradumps/laradumps --dev -W2․ Now, configure LaraDumps. Run the command below:
php artisan ds:init $(pwd)This command will generate a file called laradumps.yaml in the root of your project that looks like this:
WARNING
This file is important for correct communication between the desktop app and the Laravel or PHP project. If your project_path is empty, you must manually add your project's $(pwd) to app.project_path
app:
dispatcher: curl
primary_host: 127.0.0.1
secondary_host: host.docker.internal
port: 9191
workdir: /var/www/html/
project_path: /Users/luan.freitas/Dev/upload-flow/laravel-project/
wsl_config: wsl+Ubuntu/
config:
sleep: 0
macos_auto_launch: false
observers:
auto_invoke_app: false
enabled_in_testing: false
dump: false
original_dump: true
queries: false
slow_queries: false
mail: false
logs: true
http: false
jobs: false
commands: false
scheduled_commands: false
gate: false
cache: false
brain: false
xdebug:
client_host: 0.0.0.0
client_port: 9003
code_snippet:
above: 7
below: 3
logs:
info: true
warning: true
emergency: true
alert: false
debug: true
error: true
critical: true
notice: true
vendor: true
deprecated_message: true
slow_queries:
threshold_in_ms: 500
extra:
context: false
queries:
explain: falseSee full information in configuration options.
Agnostic PHP Framework
Requirements: PHP 8.2+
1․ Install LaraDumps Package in your PHP project using Composer.
Run the command:
composer require laradumps/laradumps-core --dev2․ Now, configure LaraDumps. Run the command below:
vendor/bin/laradumps init $(pwd)INFO
Similar to Laravel step, a laradumps.yaml file will be generated here without the "observers" key, which is specific to Laravel.
app:
dispatcher: curl
primary_host: 127.0.0.1
secondary_host: host.docker.internal
port: 9191
workdir: /var/www/html/
project_path:
wsl_config: wsl+Ubuntu/ #wsl+Ubuntu20.04/
config:
sleep: 0
macos_auto_launch: false
observers:
auto_invoke_app: false
enabled_in_testing: false
xdebug:
client_host: 0.0.0.0
client_port: 9003
code_snippet:
above: 7
below: 3See full information in configuration options.
Global LaraDumps
Requirements: PHP 8.2+
1․ You can install the global LaraDumps via Composer.
composer global require laradumps/global-laradumpsHow to install
global-laradumps installHow to uninstall
global-laradumps uninstallOther Clients
LaraDumps provides client libraries for other languages. These clients allow projects written in JavaScript/Node and Go to send dumps to the LaraDumps desktop app. See each repository for full usage examples and configuration.
JavaScript / Node.js
Repository: https://github.com/laradumps/laradumps-js
Go
Repository: https://github.com/laradumps/laradumps-go