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
How am I able to retrieve the encrypted attribute decrypted through the HTTP request user object?
Like so: $request->user();
$request->user();
Currently I noticed that I just retrieve the not decrypted attribute.
The text was updated successfully, but these errors were encountered:
You could try something like this:
/** * Convert the model instance to an array. * * @return array */ public function toArray() { $attributes = $this->attributesToArray(); $relations = $this->relationsToArray(); foreach ($attributes as $key => $value) { $attributes[$key] = $this->getAttributeValue($key); } return array_merge($attributes, $relations); }
Sorry, something went wrong.
sander3
No branches or pull requests
How am I able to retrieve the encrypted attribute decrypted through the HTTP request user object?
Like so:
$request->user();
Currently I noticed that I just retrieve the not decrypted attribute.
The text was updated successfully, but these errors were encountered: