Ejemplo n.º 1
0
 public function bootstrap(App $app)
 {
     $dotEnv = new Dotenv($app->basePath());
     file_exists($app->basePath() . DIRECTORY_SEPARATOR . ".env") && $dotEnv->load();
 }
Ejemplo n.º 2
0
 public function testPath()
 {
     $this->assertEquals($this->rootPath, $this->app->basePath());
     $this->assertEquals($this->rootPath . DIRECTORY_SEPARATOR . "app", $this->app->path());
     $this->assertEquals($this->rootPath . DIRECTORY_SEPARATOR . "config", $this->app->configPath());
 }