Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ligonsker's avatar

How to apply the Laravel upgrade to all the team?

Hello, Looks like I finally successfully upgraded my Laravel to the latest Laravel 10. No errors so far.

What is the way to "deploy" that upgrade to the rest of the team? Do they just need to update their project using git and then run composer update on their machines? Or they will require more steps?

0 likes
3 replies
LaryAI's avatar
Level 58

Yes, updating the project using git and running composer update should be enough for the rest of the team to get the latest Laravel upgrade. However, it's always a good idea to communicate with the team and make sure everyone is aware of the upgrade and any potential changes that may affect their work.

Additionally, you may want to consider setting up a continuous integration and deployment (CI/CD) pipeline to automate the process of upgrading and deploying the application to production. This can help ensure consistency and reduce the risk of errors or inconsistencies in the deployment process.

Here's an example of a basic CI/CD pipeline using GitHub Actions:

name: CI/CD

on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Install dependencies
        run: composer install

      - name: Run tests
        run: vendor/bin/phpunit

      - name: Deploy to production
        uses: easingthemes/[email protected]
        with:
          server: ${{ secrets.SERVER }}
          username: ${{ secrets.USERNAME }}
          password: ${{ secrets.PASSWORD }}
          source: ./
          target: /var/www/html/

This pipeline checks out the code, installs dependencies, runs tests, and deploys the application to the production server using SSH. You can customize this pipeline to fit your specific needs and requirements.

martinbean's avatar
Level 80

@ligonsker You push your code. They pull the code, and run composer install to install the same versions of dependencies that you’ve (hopefully) committed via the lock file.

2 likes

Please or to participate in this conversation.