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

Laravel .env Reference Another Variable

432

2 years 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

Comments are closed.