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

BrownieCoffee's avatar

Steps to configure and secure laravel app before deployment

Hi there,

Do you have steps to configure and secure the laravel app before deployment like folder permissions, .htaccess, changing folder location, path in the index.php ... ?

Thank you in advance.

S.U.+

0 likes
3 replies
jlrdw's avatar

Actually in the documentation there is a section on deployment.

But of course make sure your Authentication and authorization has been tested.

BrownieCoffee's avatar

@jlrdw thank's but I would to insist about the folder permission, organization for example.

jlrdw's avatar

The idea is to have your development environment mirror production that way everything is all set except the final deployment steps. That includes folder permissions.

Of course double-check things as you feel necessary.

Please or to participate in this conversation.