# Super-charging Laravel Forge Deployments with Environment Variables

DevFeed: [Super-charging Laravel Forge Deployments with Environment Variables](<https://devfeed.tech/articles/super-charging-laravel-forge-deployments-with-environment-variables-3916.md>)

Original publisher: [Read original article](<https://laravel.com/blog/super-charging-laravel-forge-deployments-with-environment-variables>)

Author: James Brooks

Published: 2022-06-24T17:08:00Z

Content type: article

Language: en

Sources: [Laravel Blog](<https://devfeed.tech/sources/laravel-blog.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Bash](<https://devfeed.tech/topics/bash.md>), [Composer](<https://devfeed.tech/topics/composer.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [Redis](<https://devfeed.tech/topics/redis.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [php](<https://devfeed.tech/tags/php.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [redis](<https://devfeed.tech/tags/redis.md>)

## AI overview

This article explains how Laravel Forge uses environment variables to make deployment scripts more flexible. It covers automatic deployment scripts, Composer dependency installation, frontend asset builds, PHP version selection, custom variables passed through deployment trigger URLs, and conditional deployment behavior.

## Source excerpt

Aside from provisioning servers and creating sites, Laravel Forge does so much more, including deploying code to your sites.