Laravel 8 Upgrade Strategy
Recently me and my team has been working on Laravel 8 upgrade from Laravel 7. To facilitate the upgrade we decided to use Laravel Shift . After reviewing the initial PR created by Laravel Shift, we decided that it would be too risky to make all the changes done by Laravel Shift at once. Luckily Laravel Shift also provides a Laravel Workbench if you get the yearly subscription for 99 USD/yr for latest version upgrade. By latest version they mean that as long as Laravel 8 is available, upgrades from Laravel 7 to Laravel 8 would be covered under this subscription. Once Laravel 9 is release, upgrades from Laravel 8 to Laravel 9 will be convered also under this subscription. Laravel Workbench can be used to run different tasks e.g. Upgrade to Laravel Mix 6, Class Based Routes etc. So we decided to go with the following approach: - Upgrade Laravel Mix to 6 This went pretty smoothly. - Upgrade Routes to Class Based Routes For resource based controllers we ran into a problem in which test ca