Skip to content

Instantly share code, notes, and snippets.

@webspectyler
Last active May 10, 2021 13:34
Show Gist options
  • Save webspectyler/dda62e61be6adb0f724d9cb99dda6cb3 to your computer and use it in GitHub Desktop.
Save webspectyler/dda62e61be6adb0f724d9cb99dda6cb3 to your computer and use it in GitHub Desktop.
Run in Tinker to make changes to the Duda manifest.
<?php
use \Webspec\Duda\Duda;
$duda = new Duda;
$manifest = $duda->getAppManifest();
//dd($manifest);
$manifest['wl_app_profile']['en']['app_name'] = $manifest['app_profile']['en']['app_name'];
$manifest['wl_app_profile']['en']['app_logo'] = $manifest['app_profile']['en']['app_logo'];
$manifest['wl_app_profile']['en']['app_short_description'] = $manifest['app_profile']['en']['app_short_description'];
$manifest['wl_app_profile']['en']['app_long_description'] = $manifest['app_profile']['en']['app_long_description'];
$manifest['wl_app_profile']['en']['public_page'] = $manifest['app_profile']['en']['public_page'];
$manifest['wl_app_profile']['en']['terms_of_service_page'] = $manifest['app_profile']['en']['terms_of_service_page'];
$manifest['wl_app_profile']['en']['privacy_note_page'] = $manifest['app_profile']['en']['privacy_note_page'];
$manifest['wl_app_profile']['en']['app_screenshots'] = $manifest['app_profile']['en']['app_screenshots'];
$duda->updateAppManifest($manifest);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment