Statamic Upgrade (v5)If you’ve not upgraded to Statmic v4 or Laravel v9 please do so here first and test thoroughly.

These are the main steps for our older Statamic sites. However if you’re not comfortable or something has gone amiss please follow the full guides below

Laravel - https://laravel.com/docs/10.x/upgrade

Statamic - https://statamic.dev/upgrade-guide/4-to-5

config.json

Remove

"fruitcake/laravel-cors": "^2.0"

Required Packages

php to ^8.2

laravel/framework to ^10.0

statamic/cms to ^5.0

laravel/sanctum to ^3.2

Require Dev Packages

nunomaduro/collision to ^7.0

spatie/laravel-ignition to ^2.0

phpunit/phpunit to ^10.0

Config - if not already in place

platform-check to false

Other - if not already in place

minimum-stability to stable

app > Http > Kernel.php

Replace

\Fruitcake\Cors\HandleCors::class,

With

\Illuminate\Http\Middleware\HandleCors::class,