1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 21:34:04 +00:00

remove loadDotEnv()

This commit is contained in:
Samuel Štancl 2019-08-04 20:42:50 +02:00
parent cb3bb112a3
commit 13048002ef

View file

@ -56,7 +56,7 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
protected function getEnvironmentSetUp($app)
{
if (file_exists(__DIR__ . '/../.env')) {
$this->loadDotEnv();
\Dotenv\Dotenv::create(__DIR__ . '/..')->load();
}
$app['config']->set([
@ -106,15 +106,6 @@ abstract class TestCase extends \Orchestra\Testbench\TestCase
}
}
protected function loadDotEnv()
{
if (app()::VERSION > '5.8.0') {
\Dotenv\Dotenv::create(__DIR__ . '/..')->load();
} else {
(new \Dotenv\Dotenv(__DIR__ . '/..'))->load();
}
}
protected function getPackageProviders($app)
{
return [\Stancl\Tenancy\TenancyServiceProvider::class];