Posts Learn Components Snippets Categories Tags Tools About
/

Laravel .env Reference Another Variable

Learn how to reference another variable in Laravel .env files

Created on Jul 09, 2023

197 views

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.

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

Load comments for Laravel .env Reference Another Variable

)