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

iwhale's avatar

Updating a Laravel 5.x Application after Deployment

Say I have a Laravel 5 application that I have deployed and distributed to my users. They can install locally so maintenance mode is not much help to me. How could I apply a Wordpress or October CMS style update to apply bug fixes or updates? I'd like to be able to do this in as simple a way as possible for the user. They are simply notified an update is available, click a button, and the update is applied.

Is there a way to sync with github somehow? Or maybe apply a script?

I'm not too experienced with deployment so I hope these questions are possible and make sense.

0 likes
5 replies
Snapey's avatar

You would probably need an artisan command that in turn fires a composer update. A bit dangerous though. How about a separate script that is not part of the framework and has no dependencies on it (ie, its not going to get the rug pulled from under it).

1 like
iwhale's avatar

Yeah I'm looking into using git hooks if the user got the application with git, but that is not always the case. Thanks for the suggestion anyway.

jlrdw's avatar

You said

They can install locally 

This doesn't even make sense, are you doing a client server application or a web application? Normally laravel is thought of as a Web database application. Why would users have to install anything locally?

sutherland's avatar

@jlrdw well considering the examples given, he probably meant self-hosted (which could be a local install in some cases)

jlrdw's avatar

iwhale said

I have deployed and distributed to my users. 

That's the confusing part. Take this very forum we are on , it doesn't have to be distributed to users to use, rather it is an Internet database.
iwhale must be using laravel in a client-server environment kind of like Visual FoxPro was at one time used. But if that is the case why not just use a good client server database?

Please or to participate in this conversation.