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

Headpetrol's avatar

Cpanel Laravel 10 refresh not working

Hi guys

I have uploaded my Laravel 10 project to shared hosting that uses Cpanel. Today I added a new route and went to the terminal I have access and entered php artisan optimize:clear and everything was ok. The problem is that when I got to my new route it says error 404. Has anyone had same problem and how did you solve it

0 likes
1 reply
Snapey's avatar

if it works locally and not on the server it could be that you have the wrong lettercase somewhere between file names and controller names

or, if your new route accesses a specific resource, does your server database contain the relevant data

or, any other guess, because without more information, it could be anything...

1 like

Please or to participate in this conversation.