mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:14:03 +00:00
remove loadDotEnv()
This commit is contained in:
parent
cb3bb112a3
commit
13048002ef
1 changed files with 1 additions and 10 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue