During deployment, it's sometimes useful to get the previous deployment's folder name/path as a variable.
How is this useful? In Laravel, restarting queue workers is currently not possible when using the file cache and zero-downtime deployments since the signal to restart the workers is stored in the new deployment's file cache, which the queue workers won't pick up since they're monitoring the old deployment's cache.
With that variable, a script could manually place that signal in the file cache to ensure a proper restart.