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

GodziLaravel's avatar

php tag in config:cache

hello ,

I'm wondering why I see the '<?php' when I config:cache .

vagrant@homestead:~/code/crm$ php artisan config:cache
Configuration cache cleared!
<?phpConfiguration cached successfully!

0 likes
2 replies
Snapey's avatar
Snapey
Best Answer
Level 122

You probably get it on any artisan command

If you are using Git (you should be) then look back over your commits and see if you accidentally saved something you shouldn't have

At the top of a file, you probably have

<?php<?php

You could just try searching for this combination as a first step

1 like
GodziLaravel's avatar

@snapey Yes I see it in every page resource !

I really dont know where is this error !

thanks

Please or to participate in this conversation.