public function performPostActions($runMigration = false) { if ($this->commandData->options['save']) { $this->saveSchemaFile(); } if ($runMigration) { if ($this->confirm("\nDo you want to migrate database? [y|N]", false)) { $this->call('migrate'); } } $this->info("Generating autoload files"); $this->composer->dumpOptimized(); }
/** * Execute the console command. * * @return void */ public function fire() { $this->info('Generating optimized class loader'); if ($this->option('psr')) { $this->composer->dumpAutoloads(); } else { $this->composer->dumpOptimized(); } if ($this->option('force') || !$this->laravel['config']['app.debug']) { $this->info('Compiling common classes'); $this->compileClasses(); } else { $this->call('clear-compiled'); } }