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

Ganesh_Shetty's avatar

changes neede for hosting

what are the necessary changes needed for laravel project before hosting

0 likes
6 replies
Thyrosis's avatar

If you're referring to what changes you need to make in your codebase for your local development version to work in hosting/production, I think the only thing you actually need to change is the .env file on the hosting side.

Things like the database server or credentials might be different or you might use a different URL to develop at.

Apart from that, if you have a similar web server structure, you shouldn't need to change anything for your site to run on the live production server.

Ganesh_Shetty's avatar

@Thyrosis i had made these changes but in production site it giving MissMatchTokenException works fine in my local sysytem.. what might be the reason ?

Ganesh_Shetty's avatar

@jlrdw no its not shared hosting. production site it giving MissMatchTokenException works fine in my local sysytem.. what might be the reason ?

Please or to participate in this conversation.