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

nezil7123's avatar

Composer edited and added a new line to Laravel's index.php

composer edited and added a new line

" include 'vendor/composer/autoload_script.php'; "

to my index.php file in laravel project.

Because of this line my whole project stopped working. it attached a js script file

"'/vendor/composer/installed.js' "

to every response. it caused so much problems especially with json responses.

I removed the line manually but it again appeared next day

how can i avoid this problem in future.

0 likes
0 replies

Please or to participate in this conversation.