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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners