


Using Laravel/Telescope while running your tests with
php artisan testThen console throws this exception
ReflectionException: Class env does not existBelow it says that something in test environment fails with Telescope,
I didn't change any code base or environment so...
Disable telescope for tests on your PHPUnit.xml add:
<env name="TELESCOPE_ENABLED" value="false"/>Then go to the terminal and execute:
php artisan clear
php artisan config:clearCredits
I get the solution from two sites:
I only facilitate the information in this platform because I had a few hours searching for a solution, and it makes easier to search for anyone in the future.
Thanks for reading!
Sign up & get tips and tricks
You'll get monthly updates regarding my most recent articles and products.