Created
February 23, 2020 09:34
-
-
Save Mombuyish/ad7c335efa6f4c7f8d2c10baff795c83 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function getFreshConfiguration() | |
{ | |
$app = require $this->laravel->bootstrapPath().'/app.php'; // require application kernel of laravel. | |
$app->useStoragePath($this->laravel->storagePath()); // storage path. | |
$app->make(ConsoleKernelContract::class)->bootstrap(); // bootstraping instanced of ConsoleKernelContract class. | |
return $app['config']->all(); // get all of config variables. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment