upgrade_language_translations(); return response('Done.', 201); } /** * @return int|mixed */ public function upgrade_database() { // Check admin permission Gate::authorize('maintenance'); $command = Artisan::call('migrate', [ '--force' => true, ]); if ($command === 0) { echo 'Operation was successful.'; } if ($command === 1) { echo 'Operation failed.'; } return $command; } }