@lama youz are you sure your PHP on the server works correctly?
Also try to run "php artisan config:clear" on the server
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi,
I've added custom config file to config folder to use it in the project .. in development stage with PHP Artisan Serve .. everything is working fine ..
but when I wanted to upload the site to the server and changed the public directory, then the error happened ..
each page print the custom config file!!
Can anyone help?
Please or to participate in this conversation.