spatie / laravel-ray

Debug with Ray to fix problems faster in Laravel apps
https://myray.app
MIT License
291 stars 64 forks source link

showQueries BadMethodCallException #308

Closed adampatterson closed 10 months ago

adampatterson commented 1 year ago

Describe the bug In my laravel app I went to use showQueries() but it results in BadMethodCallException

I checked the previous issues and the solution seem is to have Laravel Ray installed which I do.

Versions Ray version (you can see this in "About Ray"): 2.5.1

You can use composer show to get the version numbers of:

PHP version: 8.2.4 Laravel version: 10.15.0

To Reproduce ray($data)->showQueries();

Expected behavior I should see the queries in the Data and Queries in the Ray app.

Screenshots I even have code complete for it, and can click through to the source.

image

Desktop (please complete the following information):

I have the laravel-ray package installed, I also have the global ray package installed for WordPress development.

BadMethodCallException
Method showQueries does not exist.
adampatterson commented 1 year ago

Uninstalling Global Ray fixed the bad method call but calling showQueries() doesn't output anything now.

Also a thought, Global Ray is really handy for WordPress development, but if I can't use Global Ray with Laravel Ray then should the installer use auto_append_file rather than auto_prepend_file?

spatie-bot commented 10 months ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.

adampatterson commented 10 months ago

I suggested a fix, but this is a package for a paid product.

Why would this be closed as complete without any feedback?