When updating Laravel to a major version, it might be straightforward but more often than not, it is not. Most of the time the error message boils down to something similar to the following excerpt: Running composer update laravel/framework --with-all-dependencies Loading composer repositories with package information Updating dependencies Your requirements could not be resolved to an installable set of packages.

Example for the current installed version: The next major version correctly supports our target: Why lowest, you might ask?

Then I try to update the update the whole thing: composer update --with-all-dependencies spatie/laravel-fractal laravel/framework

Sometimes, during such a major upgrade, I need to adjust the locked dev dependencies versions as well.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners