Source: blog.laravel.com

Upgrading To Composer 2.0
Following the release of Composer 2 on October 24th, we wanted to share a guide on how to upgrade your servers to make the most of all the great benefits it brings. For existing servers, you should delete and recreate (if desired) the scheduled job within your Forge dashboard that updates your Composer installation every week. By default, Forge created this job with the "--1" flag, which instructs Composer to not upgrade to 2.0.

To upgrade, the following command should be executed: This will instruct Composer to update itself and specifically select version 2.

If your application is not compatible with Composer 2, you can roll back to Composer 1 at any time: Software Developer at Laravel.
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