files = $files; } /** * Execute the console command. * * @return void */ public function fire() { $this->call('config:clear'); $config = $this->getFreshConfiguration(); $this->files->put( $this->laravel->getCachedConfigPath(), 'info('Configuration cached successfully!'); } /** * Boot a fresh copy of the application configuration. * * @return array */ protected function getFreshConfiguration() { $app = require $this->laravel->basePath().'/bootstrap/app.php'; $app->make('Illuminate\Contracts\Console\Kernel')->bootstrap(); return $app['config']->all(); } }