I think this answer takes us to the famous "depends" ...
Depends on what?
Is your server shared or dedicated?
On Dedicated Servers
In the company where I work, I use a dedicated server.
When we need to update our systems made in Laravel, we do the following:
- We use
Git
for versioning.
- We make a
git pull
in the application folder when there are new changes.
- We install the composer on the server and run the
composer update
command when it is necessary to install the dependencies. If the system is new, then we run composer install
.
On Dedicated Servers
I would do everything I just mentioned above. And, when my changes were completed, I would make a ftp
sending the entire project to production.
Remembering that you should have your application point to the public/
folder of Laravel
. This is easy to set up on dedicated servers.
Nothing prevents you from doing FTP
on an application made in Laravel, you will only have to know how to configure correctly (especially on shared servers)