Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Refactor Paystack Configuration to Use env() for Environment Variables#189

New issue

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
abbeymichael wants to merge1 commit intounicodeveloper:master
base:master
Choose a base branch
Loading
fromabbeymichael:update-paystack-config

Conversation

abbeymichael
Copy link

This pull request refactors the Paystack Laravel package configuration to use the env() function instead of getenv() for retrieving environment variables. This change was made to resolve an issue encountered in the production environment.

Changes:

Replaced getenv calls with env() in the paystack.php configuration file to fetch environment variables.

Reason for the Change:

Issue with getenv() in Production: The original implementation using getenv() was not loading environment variables correctly in the production environment. This caused issues such as the error "URI must be a string or UriInterface," as the required configuration values were not properly retrieved.env() for Consistency: Using env() aligns with Laravel’s recommended practices for accessing environment variables. It ensures that values are correctly loaded from the .env file and properly utilized in the application.Configuration Caching: The env() function allows Laravel to cache configuration settings, improving performance and ensuring that environment-specific values are consistently available across different environments.

This refactor addresses the issue of environment variable loading and ensures that the Paystack configuration works reliably in both development and production environments.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@abbeymichael

[8]ページ先頭

©2009-2025 Movatter.jp