We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
writeMany
I'm trying to write to Statamic's cp.php config.
cp.php
My code:
ConfigWriter::writeMany( 'statamic.cp', [ 'enabled' => env('CP_ENABLED', true), 'route' => env('CP_ROUTE', 'cp'), 'start_page' => 'collections/pages', 'widgets' => [], 'date_format' => 'Y-m-d', 'pagination_size' => 100, 'link_to_docs' => false, 'support_url' => env('STATAMIC_SUPPORT_URL', 'https://www.transformstudios.com/contact'), 'theme' => env('STATAMIC_THEME', 'simple'), 'custom_cms_name' => env('STATAMIC_CUSTOM_CMS_NAME', env('APP_NAME', 'Simple')), 'custom_logo_url' => [ 'nav' => '/img/transform-studios-avatar-circle.svg', 'outside' => '/img/transform-studios-logo-handdrawn.svg', ], 'custom_favicon_url' => '/img/favicon.ico', 'custom_css_url' => '/css/cp.css', 'support_url' => env('STATAMIC_SUPPORT_URL', 'https://www.transformstudios.com/contact?utm_campaign=contextual+support&utm_source=cp+support+link&utm_medium=text+link'), ] );
But the existing values in that file are not overwritten with the ones above.
It looks like the previewMany returns the existing values not the existing + merged ones.
previewMany
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to write to Statamic's
cp.php
config.My code:
But the existing values in that file are not overwritten with the ones above.
It looks like the
previewMany
returns the existing values not the existing + merged ones.The text was updated successfully, but these errors were encountered: