Skip to content

Commit

Permalink
Repostory bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Faks committed Apr 29, 2021
1 parent ba7572d commit bc86578
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Traits/PackageEnvLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Dotenv\Dotenv;
use Dotenv\Exception\InvalidFileException;
use Illuminate\Support\Env;

trait PackageEnvLoader
{
Expand All @@ -17,7 +18,11 @@ trait PackageEnvLoader
final public function createPackageDotenv(string $environmentFile = '.env')
{
try {
$response = Dotenv::create($this->packageEnvRootPath(), $environmentFile)
$response = Dotenv::create(
Env::getRepository(),
$this->packageEnvRootPath(),
$environmentFile
)
->load();
} catch (InvalidFileException $e) {
$response = $e->getMessage();
Expand Down

0 comments on commit bc86578

Please sign in to comment.