getMigrations(); $dbMigrations = $this->getExecutedMigrations(); return view('vendor.installer.update.overview', ['numberOfUpdatesPending' => count($migrations) - count($dbMigrations)]); } /** * Migrate and seed the database. * * @return \Illuminate\View\View */ public function database() { $databaseManager = new DatabaseManager; $response = $databaseManager->migrateAndSeed(); return redirect()->route('LaravelUpdater::final') ->with(['message' => $response]); } /** * Update installed file and display finished view. * * @param InstalledFileManager $fileManager * @return \Illuminate\View\View */ public function finish(InstalledFileManager $fileManager) { $fileManager->update(); return view('vendor.installer.update.finished'); } }