Please don't upgrade multiple versions at once (eg. from v3 to v5). Please upgrade one step at a time.
To get started with the upgrade process, follow the below steps:
1. In your composer.json
file, update the doublethreedigital/runway
version constraint:
"doublethreedigital/runway": "^5.0"
"doublethreedigital/runway": "^5.0"
2. Then run:
composer update doublethreedigital/runway --with-dependencies
composer update doublethreedigital/runway --with-dependencies
3. You may also want to clear your route & view caches:
php artisan route:clearphp artisan view:clear
php artisan route:clearphp artisan view:clear
4. Update complete!
Please test locally before deploying to production!
HasRunwayResource
trait to Eloquent modelsYou will need to add a new HasRunwayResource
trait to all Eloquent models configured in the Runway config:
// app/Models/Order.phpuse StatamicRadPack\Runway\Traits\HasRunwayResource;class Order extends Model{use HasRunwayResource;}
// app/Models/Order.phpuse StatamicRadPack\Runway\Traits\HasRunwayResource;class Order extends Model{use HasRunwayResource;}