true]); } catch (\Exception $e) { info("I wasn't able to migrate the data."); } info('finished migrating'); try { // Artisan::call('optimize'); Artisan::call('config:clear'); } catch (\Exception $e) { info("I wasn't able to clear config."); } info('cleared config'); try { Artisan::call('view:clear'); } catch (\Exception $e) { info("I wasn't able to clear the views."); } info('view cleared'); try { Artisan::call('queue:restart'); } catch (\Exception $e) { info("I wasn't able to restart the queue."); } info('queue restarted'); Artisan::call('cache:clear'); VersionCheck::dispatch(); info('Sent for version check'); } }