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

santosh9mca's avatar

Changes does not show on browser

I have developed a site in laravel 9 and it work well on local machine.

But when we deploy the site on godaddy shared hosting , changes are not showing on browser even after clearing the cache using

Artisan::call('config:clear');

Artisan::call('route:clear');

Artisan::call('view:clear');

Artisan::call('event:clear');

Artisan::call('optimize:clear');

Artisan::call('cache:clear');

Artisan::call('optimize');

Please advice

Thanks

0 likes
5 replies
vincent15000's avatar

Which changes are not displayed on the browser ? Can you explain please ?

jlrdw's avatar

Are you correctly pointing to public as the document root?

1 like
santosh9mca's avatar

I am pointing public folder by .htaccess file and Site is running perfectly. But when i make any changes in controller or view file that changes does not appear on browser after clear cache.

1 like
vincent15000's avatar

@santosh9mca I already had such a problem. You have probably another cache somewhere (web hosting, internet box, ...).

tykus's avatar

@santosh9mca are you using Opcache? Can you try to restart the PHP-FPM process at the end of deployment?

1 like

Please or to participate in this conversation.