I believe that answer leads us to the famous "depends"...
Depends on what?
Your server is 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 it as follows:
- We use the
Git
for version control.
- We make a
git pull
in the application folder when there are new changes.
- We install Composer on the server and run the command
composer update
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 quoted above. And when my amendments were completed, I would make a ftp
sending the entire project to production.
Remembering that you should make your application point to the folder public/
of Laravel
. This is easy to set up on dedicated servers.
Nothing stops you from making a FTP
in an application made in Laravel, you will only have to know how to properly configure (mainly on shared servers)
It can be installed normally on an FTP server, as Composer is only a php package manager. It does not interfere in an application at all.
– Samuel Carvalho