Change your Laravel .ENV file configuration through the control panel

The Laravel .env file is a configuration file that contains environmental variables for your Laravel application. These variables are used to store sensitive data such as database credentials, API keys, and other important configuration settings that your application needs to run properly.

The .env file is located in the root directory of your Laravel project and is loaded automatically by Laravel when the application boots up. This file contains a list of key-value pairs, where the keys are the names of the environmental variables, and the values are their corresponding values.

Using the ENV Configuration Tool

If you've deployed a Laravel-optimised Managed Cloud Server then you can quickly and easily add or change existing Laravel environment variables using the ENV Configuration tool within the alttrixcloud control panel.

To use the ENV Configuration tool:

  • Head to your Hosting Packages and select Options Manage on the package you need to manage
  • Select ENV Configuration from the Laravel Tools section

If you've just deployed a new application then you'll see all the default environment variables pre-populated in the table view. If you want to adjust any variables, for example 'APP_DEBUG', then you can simply edit the right-hand side column with the option you want and the proceed to select Update ENV Configuration to save your changes.

If you want to edit the ENV file directly through File Manager, then there's a quick link to take you directly to the file at the top-right of the page, select View in File Manager to go directly to the source file which is usully found within your applications home directory.

Note: Refreshing the ENV Configuration page will re-fetch the data from the source .env file and pull in any updated or changed variables automatically.

You can also add new variables to your file by inputting the variable you want to add in the text field at the bottom-left of the table, then inputting the variable in the text field to the right. Then Update ENV Configuration will add the new variable to the table/file.

  • 0 Utenti hanno trovato utile questa risposta
Hai trovato utile questa risposta?

Articoli Correlati

Getting started with a Laravel Managed Cloud Server

Laravel on alttrixcloudCloud, AWS or Google Cloud With a alttrixcloud Managed Cloud Server you...

Managed Magento Hosting requirement for ecommerce sites

As an ecommerce platform Magento is one of the best known solutions to manage online stores of...

Do I get free email with Managed Cloud Servers?

With our Managed Cloud Servers, you can take full advantage of our high-end clustered email...

What Cloud Server regions are available?

Our Cloud Servers are located across 60+ data centres, powered by alttrixcloudCloud, AWS and GCP....

What is the difference between Managed VPS and Managed Cloud Server?

Managed Cloud Server is the next-gen iteration of Managed VPS – it’s everything that made Managed...