procedures()->each(function ($procedure, $version) { if (Comparator::lessThan(option('version'), $version)) { $procedure(); } }); option(['version' => config('app.version')]); $artisan->call('migrate', ['--force' => true]); $artisan->call('view:clear'); $filesystem->put(storage_path('install.lock'), ''); Cache::flush(); $this->info(trans('setup.updates.success.title')); } /** * @codeCoverageIgnore */ protected function procedures() { return collect([ // this is just for testing '0.0.1' => fn () => event('__0.0.1'), '5.0.0' => function () { if (option('home_pic_url') === './app/bg.jpg') { option(['home_pic_url' => './app/bg.webp']); } }, ]); } }