erikn69

Results 113 comments of erikn69

This removes a step from the trace, I'm going to try another approach Try #1588

>QueryCollector::addCustomFrameParser(DataTable::class, function (object $frame, array $trace) { > // Remove the 'App\' prefix from the namespace > $relativeNamespace = str_replace('App\\', '', $trace['object']::class); I try to avoid that, not everyone has...

>This injection also happens on plain text responses. Not possible, look https://github.com/barryvdh/laravel-debugbar/blob/6fd181adc9981aebc8fa50a54ba49d31c751ef1d/src/LaravelDebugbar.php#L791-L794 `strpos($response->headers->get('Content-Type'), 'html') === false` means that `text/plain` must be `true`, demo: https://onlinephp.io/c/67d34 maybe your response is not setting...

I also thought about `json_validate` but it can only be used in PHP 8.3, and that's why I discarded it I will add it to the early returns ![image](https://github.com/barryvdh/laravel-debugbar/assets/4933954/43344501-92aa-44d2-b5d2-6469f4e4f3c4)

>but it would be best if people just set the json header. Yes, but what happens in the case that request does not expect `application/json`, and response have it?

Are you using [rainlab/debugbar-plugin](https://github.com/rainlab/debugbar-plugin)?

Did you look there? ![image](https://github.com/barryvdh/laravel-debugbar/assets/4933954/a5a2bb48-7416-4220-8270-418297ecb00f)

When I say look there, I mean check the list of calls, the ajax calls replace the first one, which has the views, it seemed enough to say look there,...

Did you set `true` on `.env` `DEBUGBAR_OPEN_STORAGE` propertie? https://github.com/barryvdh/laravel-debugbar/blob/27b088aaad2adba74a7a73a47cb8d11277b551e3/config/debugbar.php#L40

> Did you set true on .env DEBUGBAR_OPEN_STORAGE propertie? You have to update your `.env` file with `DEBUGBAR_OPEN_STORAGE=true` > on the current version I have (Laravel 9), I don't have...