spatie / laravel-ray

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

Allow to use env() when config is not available. #172

Closed crynobone closed 3 years ago

crynobone commented 3 years ago

In Laravel application, you can use .env without stubbing the configuration file (as long as application not using configuration caching).

RAY_ENABLED=(true)
SEND_REQUESTS_TO_RAY=(true)

In Testbench, adding the following to phpunit.xml will automatically configure Ray.

  <server name="RAY_ENABLED" value="(true)"/>
  <server name="SEND_REQUESTS_TO_RAY" value="(true)"/>

Signed-off-by: Mior Muhammad Zaki crynobone@gmail.com

freekmurze commented 3 years ago

That's nice, thanks!