spatie / laravel-ray

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

Not working for me in WordPress #92

Closed w3guy closed 3 years ago

w3guy commented 3 years ago

When I bought ray, I installed the composer package and it was working.

Today, I installed the WordPress plugin, removed the composer package and updated Ray to the latest version.

Now it doesn't work.

Note: I use PHPStorm.

I have restarted my computer and Mamp pro couple of times and still not working.

freekmurze commented 3 years ago

Maybe your WordPress installation thinks it's in production?

Try calling ray()->enable()

w3guy commented 3 years ago

@freekmurze add this to your WordPress doc

Local environment has to be explicitly defined in wp-config.php file like so

define( 'WP_ENVIRONMENT_TYPE', 'local' );

I did that and it started working.