Home / Snippets / Laravel .env Reference Another Variable
Laravel .env Reference Another Variable cover

Laravel .env Reference Another Variable

239

1 year ago

0 comments

To reference another variable in Laravel .env you may use the "${}" string template. This will retrieve the variable that you have previously defined.

APP_NAME=Testaa
FULL_APP_NAME="${APP_NAME} Dashboard"

With this, the FULL_APP_NAME will contain "Testaa Dashboard" now.
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this