DEV Community

Discussion on: Laravel Best Practice [Coding Standards Part 02] 🧑‍🦰👩‍🦰

Collapse
 
lathindu1 profile image
Lathindu Pramduitha

great @bravemaster619 it's better to use config instep of env. and also we can use both.

we can use real content inside config file and. if we have local only thing we can use them inside .env .

like

"paypal_secret" = env("PAYPAL_SECRET" , 'asdfthdnejs323jn23nk3jn2njk3n2'),

and for our sandbox in local we can use key's inside .env

PAYPAL_SECRET = "kjansjnaknjsnalhjsbljhslhjlhjsla"

otherwise we don't want to use env anyware.

Collapse
 
bravemaster619 profile image
bravemaster619

This.