anoopsrma / khalti

Khalti integration for Laravel
MIT License
3 stars 3 forks source link

Replace env() with config() #3

Open jamesbhatta opened 2 years ago

jamesbhatta commented 2 years ago

As we know, config values are while caches while the accessing from environment file directly with env() will reach out to file taking more time to execute. Also we have test and live keys which should be used in certain environment. Maybe a KHALTI_MODE will be more appropriate or we can also use the corresponding values according to current app environment.