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.
This.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
This.