Upgrade Laravel from 8 to 9

Add PPA for PHP 8

Add the ondrej/php which has PHP 7.4 package and other required PHP extensions.

sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update



Composer Dependencies

You should update the following dependencies in your application's composer.json file:

  • laravel/framework to ^9.0
  • nunomaduro/collision to ^6.1

In addition, please replace facade/ignition with "spatie/laravel-ignition": "^1.0" in your application's composer.json file.


composer update -vvv --with-dependencies