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

saif642's avatar

In my laravel project someone put extra code in index.php

In my laravel project someone put extra code in index.php when i remove that it come again immediately, and if i delete index.php file and htaccess it reappear automatically , please help me what is happaning?

0 likes
2 replies
jlrdw's avatar

Is your project setup correctly pointing to public as document root.

1 like
gych's avatar

Can you make a screenshot of the code that has been added? It could be Malware.

1 like

Please or to participate in this conversation.