Skip to content

Remove direct usage of env values instead access it via config to follow best practice. #1335

@NishaSharma14

Description

@NishaSharma14

According to Laravel best practices, environment variables should only be accessed in configuration files using the env() helper. Direct use of env() outside config files is discouraged because config values are cached in production.

Metadata

Metadata

Assignees

Labels

enhancementgreater code or enhancement of existing feature

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions