Skip to content

Use config('app.key') instead of env('APP_KEY') #17

Open
@mpryvkin

Description

@mpryvkin

I suggest to use config('app.key') instead of env('APP_KEY') in HasEncryptedAttributes.php:192.

According to Configuration Caching:

If you execute the config:cache command during your deployment process, you should be sure that you are only calling the env function from within your configuration files. Once the configuration has been cached, the .env file will not be loaded and all calls to the env function will return null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions