Replies: 1 comment
-
Finally i got it $settingsRepository = app(SettingsRepository::class);
$settings = app(ApiSettings::class);
foreach ($settings::encrypted() as $key) {
$settingsRepository->updatePropertyPayload(
$settings::group(), $key, Crypto::encrypt('')
);
} in this way its possible to clone settings table and clear out the encrypted values, without having app key |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Thanks for your good work.
I have a question:
if APP_KEY changes, for example clone database table to another host, I cant reset encrypted values, because when I try to set the value, a 'The MAC is invalid' is raised.
for example:
at line
$settings->api_key = '';
it try to load and decrypt api_key value before the assignment, and theDecryptException
is raisedHow can I clear encrypted settings without delete migrations and recreate the table?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions