Created
January 27, 2018 06:21
-
-
Save tpraxl/e929311b2db0014dd8a6d0c406ef7421 to your computer and use it in GitHub Desktop.
ochestra/testbench how to load a .env file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables; | |
… | |
abstract class TestCase extends \Orchestra\Testbench\TestCase | |
{ | |
protected function getEnvironmentSetUp($app) | |
{ | |
// make sure, our .env file is loaded | |
$app->useEnvironmentPath(__DIR__.'/..'); | |
$app->bootstrapWith([LoadEnvironmentVariables::class]); | |
parent::getEnvironmentSetUp($app); | |
} | |
… | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment