Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

glembo's avatar

How to update a laravel application?

I plan to update my first laravel project. It's just a small application and I want to update from version 6.17 to 6.18. What is the basic procedure to make a minor update can someone give me advise?

Edit: I already tried to find general information on stackoverflow and also consultated the documentation. But there are only specific version hints and no general procedure. Furthermore I know I have to use composer. But how ? Just change the laravel/framework value to the new version inside composer.json and run composer update? Is this all?

0 likes
7 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

Since laravel 6, all updates in 6.x are none breaking. Therefor you can just upgrade without having to do anything

Personally I prefer to upgrade all my minor upgrades at the same time

composer update
glembo's avatar

Is this procedure right:

  1. change laravel/framework value inside composer.json to the new version (e.g. 6.18)
  2. run composer update

Finish?

Sinnbeck's avatar

If your version is that specific then yes. Depends on what it says exactly

Be aware that other packages are updated to if possible

1 like
glembo's avatar

OK, thank you for the reply. The other packages should also get an update to the required version. The composer update command is looking for the required versions and picks the matching one. Is this correct?

jlrdw's avatar

There are instructions in the upgrade guide that answers the exact question you just answered.

glembo's avatar

I could only find this:

Update your laravel/framework dependency to ^6.0 in your composer.json file.

Next, examine any 3rd party packages consumed by your application and verify you are using the proper version for Laravel 6 support.

That was what I even found before I posted the question. But there is no general process guide. That was the missing part.

Please or to participate in this conversation.