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

Lama Youz's avatar

Custom config file on server

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?

0 likes
7 replies
neilstee's avatar

@lama youz are you sure your PHP on the server works correctly?

Also try to run "php artisan config:clear" on the server

Lama Youz's avatar

@neilstee Yes, It's working fine just printing the config file

I've tried it and it's the same problem

neilstee's avatar

@lama only the custom config or all the configs in the config folder?

neilstee's avatar

or maybe your view is messing up, try php artisan view:clear

does the value change when you change values from the custom config file?

Lama Youz's avatar

I've tried php artisan view:clear and it's the same ..

the values of the config file is static and won't change ..

Please or to participate in this conversation.