Deploying Larravel web Application

That’s correct, support for Git and SSH is not that common with web hosting, and not supported with our hosting. The solution, as you said, is:

That’s also correct. The common way to setup a Laravel site on our hosting is to upload the entire project to the htdocs folder of your site, and setup a .htaccess file to route all requests to the public folder.

If you upload your project to the htdocs folder, your PHP code will be able to access the storage folder.

It should be possible to do this with .htaccess rules too. All you would need to do is redirect all paths starting with /storage/ to the /storage/public/ folder instead of the /public/ folder.

I don’t have an example for this myself, but I can help you create it if you’re unable to find the solution yourself.

5 Likes