Migrating a project from Laravel 11 to 12

I want to quickly tell you how you can update Laravel 11 to Laravel 12, as simple as I told you in the previous video where I was talking about the new features and so on, which is what is new and we have very little. This is basically what we have to do, simply place a 12:

composer.json

laravel/framework to ^12.0
phpunit/phpunit to ^11.0
pestphp/pest to ^3.0

If you have a minimum version of php unit or Pest you can also upload it and little else; we execute:

$ composer install

That's basically all here, remember that you may have problems with other third-party dependencies, that is, packages installed by you that are or are not part of the Laravel ecosystem that may have conflicts between versions and in that case you must decide whether to update Laravel or remove the package.

I agree to receive announcements of interest about this Blog.

We talked about the difficult task (Bazinga) of migrating a project from Laravel 11 to 12.

- Andrés Cruz

En español

) )