laradumps / laradumps Goto Github PK
View Code? Open in Web Editor NEW🛻 LaraDumps is a friendly app designed to boost your Laravel PHP coding and debugging experience.
Home Page: https://laradumps.dev
License: MIT License
🛻 LaraDumps is a friendly app designed to boost your Laravel PHP coding and debugging experience.
Home Page: https://laradumps.dev
License: MIT License
Laradumps don´t work in Laragon?
I did several tests and the desktop app cannot detect the log
My .env
DS_APP_HOST=127.0.0.1
DS_APP_PORT=8000
DS_SEND_QUERIES=true
DS_SEND_LOGS=true
DS_SEND_LIVEWIRE_COMPONENTS=true
DS_SEND_LIVEWIRE_FAILED_VALIDATION=true
DS_AUTO_CLEAR_ON_PAGE_RELOAD=true
DS_AUTO_INVOKE_APP=true
DS_PREFERRED_IDE=phpstorm
Fala Luan, procurei na documentação mas não encontrei nada parecido, tem hora que temos que usar mais de 1 endpoint de uma API utilizando o JSON do endpoint anterior, ao dar um dd no POSTMAN eu consigo pegar o JSON em string e jogar ele para o próximo endpoint, tentei a mesma coisa com o LARADUMPS mas a string se perde de vista ficando em uma só linha, tem algum comando para dar uma especie de beautfy no json para melhor leitura?
OBS, ds($json)->isJson() não serve pois este mostra o json como objeto.
OBS2, muito top o Laradumps, parabéns...
I can't run ds:check
on my pipeline because composer doesn't include --dev dependencies.
I get the following error: There are no commands defined in the "ds" namespace
Creating another step to include --dev just to check ds:check
, remove vendor and re-create without --dev is impracticable and a waste of build time.
So, I suggest to include ds()
to the requirements and ignore the function call if production environment, just like Ray. Also a config flag to allow ds()
in production would be nice.
Extend LaraDumps functionality to support JavaScript/Node.js development environments like Node.js, Vue, React, etc., similar to the Spatie Ray tool
LaraDumps is a great tool for debugging and inspecting data in Laravel applications. However, as the web development landscape evolves, more and more applications are built using JavaScript frameworks and libraries like Vue, React, and Node.js. Developers working with these technologies would greatly benefit from having a tool similar to LaraDumps that allows them to easily inspect and debug their code during development.
Bom dia!
Estou utilizando o sail em um ambiente WSL2, porém não funcionou com a configuração abaixo.
Existe alguma outra configuração ?
Originally posted by @Jeferson-N in #116 (comment)
When you change any configuration and click save, the message in the image below appears
This happens in the Linux app installed by the snap store
distro Ubuntu 23.04
To configure LaraDumps, run: php artisan ds:init
.
Software | Version (exactly) |
---|---|
LaraDumps App | 3.2.1 |
LaraDumps package | 3.1.0 |
Laravel | 10.48.10 |
Operating System | Ubuntu 22.04.4 |
I am trying to configure laradump with laravel homestead, I have multiple virtualhost running on homestead with ip 192.168.56.56, for example http://mylaravel1.test http://mylaravel2.test but none of them can communicate with Laradumps application.
in my /etc/hosts file is configured as follows:
192.168.56.56 http://mylaravel1.test
192.168.56.56 http://mylaravel2.test
I tried to configure in laradumps.yaml the primary_host field with, 127.0.0.1, 192.168.56.56 and 10.211.55.2 but none of them works.
What is the correct configuration for laravel homestead?
Install and configure Laravel Homstead with multiple virtualhost, install Laradumps app and Laradumps package
I think a correct configuration wor Laradumps.yaml could correct the problem
laradumps.yaml generated by command php artisan ds:init $(pwd)
app:
primary_host: 127.0.0.1
secondary_host: host.docker.internal
port: 9191
workdir: /var/www/html/
project_path: /home/vagrant/sagicorwebhook/
wsl_config: wsl+Ubuntu/
config:
sleep: 0
observers:
auto_invoke_app: false
enabled_in_testing: false
dump: false
original_dump: true
queries: false
slow_queries: false
mail: false
logs: false
http: false
jobs: false
commands: false
scheduled_commands: false
gate: false
logs:
info: false
warning: false
emergency: false
alert: false
debug: false
error: true
critical: true
notice: true
vendor: false
deprecated_message: false
slow_queries:
threshold_in_ms: 500
Depois que fiz a atualização pra nova versão, não estou mais conseguindo fazer o debug dos componentes Livewire. Procurei nas Releases Notes se foi removido essa opção e não encontrei nada sobre o assunto
I'm interested in whether there is a feature to automatically clear logs after each request to maintain a clean development environment.
During development, logs can quickly accumulate and clutter the logging output, making it difficult to track recent and relevant entries. Having a way to automatically clear logs after each request would help in maintaining a clean log state, improving the readability and manageability of log data.
I suggest implementing a configurable option in the LaraDumps settings that allows developers to enable or disable automatic log clearing after each request. This could be a simple boolean configuration in the LaraDumps config file.
As of now, I am not aware of any related issues or pull requests. This feature request could serve as a starting point for further discussion and implementation.
Hello guys,
how do you run Laradumps with WSL2?
I am using a testproject on WSL2 and run it through php artisan serve
but anything is beeing dumped in the app.
Am I missing something?
Thanks in advance
Software | Version (exactly) |
---|---|
LaraDumps App | v1.5.1 |
LaraDumps package | v1.7.0 |
Laravel | v8.83.27 |
Operating System | Win 11 |
My tests were taking incredibly long to execute. After a long day of debugging, I realised that because events are dispatched synchronously, the test RefreshDatabase trait migrations were triggering "Illuminate\Database\Events\QueryExecuted" events. These in turn would trigger Laradumps to send the queries (DS_SEND_QUERIES=true) to the Laradumps App.
But, since Laradumps was not running, the SendPayload has to timeout on its curl requests 3 times per migration-related query (CREATE TABLE; INSERT INTO migrations; CREATE INDEX). Each table migration was thus taking 2 seconds to execute, cumulatively 60 seconds per test.
I assume the same problem would occur with DS_SEND_LOGS=true as well.
Improve the developer experience by providing a warning on repeat curl failures.
To configure LaraDumps, run: php artisan ds:init
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | v3.0.2 |
LaraDumps | v3.0.0 |
LaraDumps core | v2.0.0 |
Laravel | 10.48.4 |
Operating System | Sonoma 14.4.1 |
After installing v3 is impossible to debug PEST tests even with dd
or dump
. Also with ds
.
Create a test. For example:
it('test is not dumping', function () {
dump('test');
ds('test');
dd('no output');
})->only();
Fire the test: ./vendor/bin/pest
.
You will see how the test goes out but without output. Just finishes the test.
Remove the package: composer remove laradumps/laradumps --dev ^3.0 -W
. Remove the ds
call from test and run again.
it('test is not dumping', function () {
dump('test');
dd('no output');
})->only();
Fire the test: ./vendor/bin/pest
and you will see your dumps on terminal.
Downgrading to v2 fixed the problem
Gostaria de saber se tem previsão e se faz parte do backlog voltar a debugar o Livewire?
Estou parado na versão 1.7.2 por conta do Livewire que é um fator importante pra mim
A blade helper to replace dd and dump to use Laradumps exclusively for dumping data
Summary pretty much explains it.
A blade helper to replace dd and dump to use Laradumps exclusively for dumping data
Let us know if this is related to any issue/request
To access the doc you can use https://lara-dumps.gitbook.io temporarily.
Download link not working (404)
https://laradumps.dev/get-started/get-started/installation?id=desktop-app
When I run my app, laradumps app focuses to the forefront. Can an option be added to disable it?
Laradumps gets focused to the front of other apps
Add a option to prevent this from happening.
Let us know if this is related to any issue/request
Obrigado a todas as pessoas que estão envolvidas ou ja se envolveram neste repositório!
Quero agradecer a cada um por deixar minha vida de desenvolvedor melhor !
OBRIGADO !
To configure LaraDumps, run: php artisan ds:init
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | 2.3.3 |
LaraDumps package | 2.2.0 |
Laravel | |
Operating System | WSL2 & php-fpm docker |
I've treid to test a dump using dsd(123)
on Artisan tinker but it printed a dump log as if like an array with a single value "123"
php artisan tinker
type dsd(123)
and enter
see the log output on desktop app
❗ You MUST use this template to submit an issue or it will be CLOSED. ❗ |
Thank you for reporting a bug and helping us to improve our software!
🐛
We use GitHub Issues EXCLUSIVELY for tracking bugs and unexpected software behavior.
🙏
Questions like "How to...", "how can I...", "I would like to..." should be posted in the LaraDumps Discussions tab.
✍️
Give this report a short but meaningful title. Make it easy to spot for others who might be facing the same issue.
⚠️
Issues that do not describe a bug will be closed.
To configure LaraDumps, run: php artisan ds:init
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | 1.7.2 |
LaraDumps package | newest |
Laravel | v9.40.1 |
Operating System | windows 10 |
I tried multiple addresses in .env but I never received anything when using ds(); on 'welcome' route as in an example. I am using simple Laravel Homestead implementation.
First click on "FOO" then....
(Do you have any idea how we can fix it?)
Screenshots
The latest installer for Windows ver 1.50 has an extraction error during the installation. I downloaded it thrice and had the problem repeat itself. The first time was automated from within Laradumps, the other 2 times were manual browser downloads.
Download: https://github.com/laradumps/app/releases/download/v1.5.0/LaraDumps-Setup-1.5.0.exe
Install
Re-build the installer
When clicking a path, it tries to open the file with the docker internal path. It would be nice if we could somehow specify the local project path in, for example, the .env
Cannot open file from the desktop app when using docker.
Adding a configuration option to set a local project path like:
DS_LOCAL_DIR=/home/user/project
Or am I missing something?
Primeiro quero parabenizá-los pelo projeto, está muito bom, mas muito bom mesmo.
Queria muito usar a ferramenta mas por N motivos preciso usar o PHP 7.3 e a versão atual da ferramenta necessita do PHP 8.
Para usar fiz um fork do repositório aqui e estou usando aqui no meu projeto laravel. Falei com o Tio Jobs via coments do Youtube sobre isso.
Não sei se pretendem manter uma versão com suporte a versões anteriores ao PHP8 mas fica a minha contribuição.
Se desejarem manter uma tag para, por exemplo, faço um pr no repositório do que tenho aqui :)
To configure LaraDumps, run: php artisan ds:init
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | 3.0.2 |
LaraDumps package | v3.0.0 |
Laravel | v10.48.4 |
Operating System | Macbook Pro M1 Sonoma 14.3 |
We've decided to use Laradump rather than Laravel Ray at work, and we're very happy with it. A little problem: I upgraded the package (dev) to V3 on our API, no problem locally, but our CI (tests) went from 10mn to 35mn. I tried to identify the source, but nothing could be done. I also noticed this latency in local, I've had to downgrade it for now.
EDIT: Not really good long term solution, but for the moment we remove the package in our CI
Sorry, it's private information, I can't give more detail...
It would be really nice to send the queries to a defined sreen.
It would help to organize the output of the queries.
ds()->toScreen('LaraDumps')->queriesOn('Check user query');
Queries are always sent to "screen 1".
hi
I installed laradumps by composer on my laravel project and installed windows app on my system. then i ran "php artisan ds:init" but this message back to me:
ERROR There are no commands defined in the "ds" namespace.
how can I fix that? please guide me.
thanks.
❗ You MUST use this template to submit an issue or it will be CLOSED. ❗ |
Thank you for reporting a bug and helping us to improve our software!
🐛
We use GitHub Issues EXCLUSIVELY for tracking bugs and unexpected software behavior.
🙏
Questions like "How to...", "how can I...", "I would like to..." should be posted in the LaraDumps Discussions tab.
✍️
Give this report a short but meaningful title. Make it easy to spot for others who might be facing the same issue.
⚠️
Issues that do not describe a bug will be closed.
To configure LaraDumps, run: php artisan ds:init
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | 1.7.2 |
LaraDumps package | 1.11.1 |
Laravel | 10.9.0 |
Operating System | Windows 11 x64 |
I'm having an error whenever I try to do any action related to laradumps, in a Laravel project:
In LaraDumpsServiceProvider.php line 52:
require_once(<path to my project>\vendor\laradumps\laradumps\src./functions.php): Failed to open stream: Permission denied
Install the package in a Laravel app.
Screenshots
To configure LaraDumps, run: php artisan ds:init
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | 2.4.3 |
LaraDumps package | v2.3.1 |
Laravel | 9.52.16 |
Operating System | MacOS |
I received "Trait "LaraDumps\LaraDumpsCore\Concerns\Traceable" not found" when trying to install LaraDumps. How to fix this?
Screenshots
❗ You MUST use this template to submit an issue or it will be CLOSED. ❗ |
Thank you for reporting a bug and helping us to improve our software!
🐛
We use GitHub Issues EXCLUSIVELY for tracking bugs and unexpected software behavior.
🙏
Questions like "How to...", "how can I...", "I would like to..." should be posted in the LaraDumps Discussions tab.
✍️
Give this report a short but meaningful title. Make it easy to spot for others who might be facing the same issue.
⚠️
Issues that do not describe a bug will be closed.
To configure LaraDumps, run: php artisan ds:init
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | v2.1.0 |
LaraDumps package | v.2.1.0 |
Laravel | v10.14.1 |
Operating System | macOS v13.4 (22F66) |
When I click on the Filename Lines No. refresh the laradumps windows. Previous logs all gone.
I did click the filename:line_no expecting Go to Phpstorm as a result. However, I received the laradumps windows refresh.
First click on "filename:line" then it happen
No idea
This is the output when I runvendor/bin/laradumps configure
To configure LaraDumps, run: php artisan ds:init
.
Null and "empty" values are not displayed on Laradumps
ds('');
ds(0);
ds('0');
ds(null)
Cmd+Shift+X is used in vscode to open extensions and it gets hijacked by Laradumps.
Brief description of what is at stake.
Can't open extensions with default hotkey
A clear and concise description of the problem.
A clear and concise description of what you want to happen.
Let us know if this is related to any issue/request
Caraca que massa isso que vocês fizeram, eu tava atraz de algo assim, eu não consegui colocar o xdebug, isso facilitou minha vida! parabéns a todos envolvidos!
To configure LaraDumps, run: vendor/bin/laradumps configure
.
You can run composer show -i
and npm list
to list installed package with their versions.
Software | Version (exactly) |
---|---|
LaraDumps App | v2.1.0 |
LaraDumps package | v2.1.0 |
LaraDumps core | v0.2.0 |
Laravel | 9.52.10 |
Operating System | MAC |
When sending and email with Raw data throws an error on laradump:
ERROR Call to a member function getPath() on string in vendor/laradumps/laradumps/src/Payloads/MailPayload.php on line 36.
Create a Mailable and add an attachment using fromData
. For example:
public function attachments()
{
return [
Attachment::fromData(fn () => $this->csv, 'export.csv')
->withMime('text/csv'),
];
}
Change the MailPayload class to handle raw data,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.