updater = $updater; } /** * Show default update page. * * @return mixed */ public function index() { $versionInstalled = $this->updater->source()->getVersionInstalled('v'); $updateAvailable = $this->updater->source()->isNewVersionAvailable($versionInstalled); return view( 'vendor.self-update.self-update', [ 'versionInstalled' => $versionInstalled, 'versionAvailable' => $this->updater->source()->getVersionAvailable(), 'updateAvailable' => $updateAvailable, ] ); } /** * Run the actual update. * * @return \Illuminate\Http\RedirectResponse */ public function update() { $this->updater->source()->update(); return Redirect::to('/'); } public function download() { $this->updater->source()->fetch(); } }