Deploy Laravel for
GitLab CI/CD
View on GitHub
Step 2: Choose which branch to deploy
By default, a commit to the main branch will trigger a deployment.
If you want to deploy a different branch, edit the .gitlab-ci.yml file and change every occurrence of main to your desired branch.
If you want to deploy to multiple environments you can copy and paste the deploy_main job.