/** * Bootstrap the given application. * * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) { if (!$app->configurationIsCached()) { try { (new Dotenv($app->environmentPath(), $app->environmentFile()))->load(); } catch (InvalidArgumentException $e) { // } } }
/** * @param \Illuminate\Contracts\Foundation\Application|\Notadd\Foundation\Application $application * * @return void */ public function bootstrap(Application $application) { if (!$application->configurationIsCached()) { $this->checkForSpecificEnvironmentFile($application); try { (new Dotenv($application->environmentPath(), $application->environmentFile()))->load(); } catch (InvalidPathException $e) { } } }
/** * Bootstrap the given application. * * @param \Illuminate\Contracts\Foundation\Application|\Notadd\Foundation\Application $application * * @return void */ public function bootstrap(Application $application) { if (!$application->configurationIsCached()) { $this->checkForSpecificEnvironmentFile($application); try { (new Dotenv($application->environmentPath(), $application->environmentFile()))->load(); } catch (InvalidPathException $e) { } } $application->detectEnvironment(function () { return env('APP_ENV', 'production'); }); }
/** * Bootstrap the given application. * * @param \Illuminate\Contracts\Foundation\Application $app * * @return void */ public function bootstrap(Application $app) { $app->detectEnvironment(function () { return env('APP_ENV', 'production'); }); if (!$app->configurationIsCached()) { try { (new Dotenv($app->environmentPath(), $app->environmentFile()))->load(); } catch (InvalidPathException $e) { // } } }
/** * Bootstrap the given application. * * @param \Illuminate\Contracts\Foundation\Application $app * @return void */ public function bootstrap(Application $app) { if (!$app->configurationIsCached()) { $this->checkForSpecificEnvironmentFile($app); try { $path = $app->environmentPath(); $file = $app->environmentFile(); if (!file_exists($path . '/' . $file)) { $path = $app->basePath(); } (new Dotenv($path, $file))->load(); } catch (InvalidPathException $e) { // } } }