When laravel-ray is composer required, but ray() is run outside the laravel framework, strange things happen because ray() references the laravel version of ray, not the spatie/ray version of ray.
An example is that ray()->disable() does nothing. It does not disable ray, it also does not produce an error.
When laravel-ray is composer required, but ray() is run outside the laravel framework, strange things happen because ray() references the laravel version of ray, not the spatie/ray version of ray.
An example is that ray()->disable() does nothing. It does not disable ray, it also does not produce an error.
That explains why ray()->disable() did not change anything here: Originally posted by @Polfo in https://github.com/spatie/laravel-ray/issues/148#issuecomment-775058169
Versions: spatie/laravel-ray (1.12.6) spatie/ray (1.19.4) php 7.4.9