Laravel environment variables leaking between applications when they call each other through GuzzleHttp

前端 未结 2 750
无人及你
无人及你 2021-01-04 08:35

I have two Laravel 5.2 applications (lets call them A and B) on my local machine, both configured on two different virtualhosts on my local Apache 2.4 development server.

2条回答
  •  Happy的楠姐
    2021-01-04 09:12

    I'm facing the same exact issue with (XAMPP) Apache vHosts on Windows.

    Dirty hack; caching your configurations...

    php artisan config:cache
    

    Source: #219

    Note: You will need to clear the configuration cache before running phpunit tests.

    php artisan config:clear
    
    ./vendor/bin/phpunit
    
    php artisan config:cache
    

提交回复
热议问题