true]); } catch (\Exception $e) { info("I wasn't able to migrate the data."); } info("finished migrating"); $output = []; // exec('vendor/bin/composer install --no-dev -o', $output); info(print_r($output,1)); info("finished running composer install "); try { Artisan::call('optimize'); } catch (\Exception $e) { info("I wasn't able to optimize."); } info("optimized"); 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"); VersionCheck::dispatch(); info("Sent for version check"); } }