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

helpmyworld's avatar

Deploy Laravel 5.4 for production

I spent 2 days trying to figure this out. i did not want to bother but i hit a wall. i am finished with my app, i want to go online. I managed to transfer all my local files to my Cpanel File Management. I use Shared Hosting (Afrihost)

I changed the .htaccess, moved it to root folder, changed my env file as per my details but i seem to get the "Whoops, looks like something went wrong." after making changes.

What is the best way to deploy my app for online?

0 likes
1 reply
jlrdw's avatar

See the guide I posted on this link https://laracasts.com/discuss/channels/laravel/error-on-site-when-upload-on-live-server-errorexception-in-classloaderphp-line-444 I was so mad that I actually downloaded using composer and installed a laravel 5.4 got it working, then uploaded it to my host and it works perfect.

This question is asked and answered at least 5 to 10 times weekly it seems like.

Just follow the guide exactly. Prior to that post that ticked me off I had always used 5.1. I went through all that just to prove a point that if you follow the guide it really really works.

Please or to participate in this conversation.