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

thinkjay's avatar

Laravel Projects - Upload straight to a hosted web server?

Hi, I would like to make switch to Laravel for an upcoming project.

A government client will be hosting the php site and I want to ensure that I can handoff my files and the site will work on their server without the client having to install composer/laravel or any other dependencies (since they probably won't be able to).

So my question is... if I send my files from my Laravel directory to the client, will it work on their web server (considering that I edit the connection strings & user/passwords for databases/etc)?

From what I understand so far, Laravel produces/compiles php files, but when pushed up onto a dev/live server, the site should work as is? Please correct me if I'm wrong, as I need to give up on Laravel if it requires any installations on the client server.

Thanks in advance.

0 likes
1 reply
sitesense's avatar
Level 19

It will work as you describe, so long as all requirements are met: http://laravel.com/docs/5.0#server-requirements

The storage folder requires write permissions and obviously you'll want to ensure the environment is set for production, for example, debug mode is turned off.

Maybe want to run php artisan optimize --force beforehand too.

One caveat, anything you have in "require-dev": { in your composer.json file, will be included. You might want to strip those out first.

Please or to participate in this conversation.