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

EchelonStudio's avatar

does anyone know why am loosing my styling after deploying Laravel application to shared hosting (Hosting)

Hi Dev, I'm just getting started with Laravel and I just finish a project have been working on, I tried to deployed the project to Hostinger premium shared hosting but ever since have been doing it I noticed I'm losing some of my styling and sometimes my layouts after deployment, everything seems cool in local but my page display differently in deployment, for example, Firefox and chrome display the content of a particular page on the project properly but when I use safari to check on this page everything seems horrible as if I didn't run npm run dev during development, this particular page display as expected if I use chrome or Firefox, does anyone know what's going on ????

again, I already run npm run build to minify my asset before uploading the code to deployment, I have tried several methods to deploy the app, Ftp, through ssh etc but my code still behave differently in deployment.... I need help

0 likes
3 replies
Tray2's avatar

Laravel isn't really made for shared hosting. So unless you know what you are doing, the .env file might be exposed. If you have the correct document root /somepath/public then you should be good to go.

EchelonStudio's avatar

what can you recommend ? aws is not accepting my debit card as payment method, I had to use Hostinger because they accept crypto as payment method.... I'm really frustrated rn @Tray2

Please or to participate in this conversation.