Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Showing encrypted data #56

Closed
msassa opened this issue Feb 21, 2020 · 2 comments
Closed

Showing encrypted data #56

msassa opened this issue Feb 21, 2020 · 2 comments

Comments

@msassa
Copy link

msassa commented Feb 21, 2020

After making some migrations, adding some new fields, and making nullable others, the package began to return encrypted values for 'some' of the fields.
For example, I have the password of the db working correctly (it is encrypted and returns the correct value) but I have the name of the encrypted S3 bucket, and it returns the string as it is in the db "__LARAVEL-DATABASE-ENCRYPTED-VERSIO ... "
I can't make it work again ... any idea?

@msassa
Copy link
Author

msassa commented Apr 21, 2020

2 month later I'm still have this problem ... someone can help me, please...
Like I say in the previous message, the password field was not modify by the migration, but the aws_bucket was:
$table->string('aws_bucket')->nullable()->change();

How can solve this, please.

@msassa
Copy link
Author

msassa commented Apr 21, 2020

I already found the problem:
$table->string('aws_bucket') was truncating the field from 500 to 255 which is the default length.
I should be using this $table->string('aws_bucket', 500)
🔥

@msassa msassa closed this as completed Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant