Laravel 11 provides us with the Context Facade that allows us to define and access contextual data for the current request, which automatically gets logged as metadata in the log files in case of any errors.
But sometimes, you might want to define contextual data that is sensitive, for example, an external API token that got generated in one part of the application and wants to be reused in some other part of the application.
Here is how we can use Context to add hidden data so that it does not get logged into the log files and also prevent accessing them from the default shared Context get() method