skip to Main Content

I have a rather old RESTful API based on Laravel. I want to upgrade it to the latest version, but I’m afraid to do it the wrong way and cause a lot of issues. Not only that, but I saw some explanations, but I’m afraid to use them without making sure they’re true, so I put this topic here to find a solution to this problem.

2

Answers


  1. You don’t worry, following these three steps.

    Updating composer.json file.

    "require": {
        "laravel/framework": "^8.0",
    }
    

    And Run it.

    composer update
    

    Migrations.

    php artisan migrate
    
    Login or Signup to reply.
  2. Follow these steps to update with the latest version of laravel

    Step 1: Update dependency

    composer update laravel/framework
    

    Step 2: Update the composer

    composer update
    

    Step 3: Run the migrate & seed command

    php artisan migrate
    php artisan db:seed
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search