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

Stano's avatar
Level 1

Error after deploy on hosting

Hello,

I have web on Laravel framework which working on local server without problems. But after copy project on hosting via ftp there is error: Class "Illuminate\routing\Controller" not found. I have coppied all files and directories.

This error is from links where is used session or cookies in site controller. For example close "cookie accept" alert.

0 likes
4 replies
tisuchi's avatar

@stano Can you show more details of your error?

If possible, can you run the following in the terminal on your server?

php artisan cache:clear
php artisan config:clear
Stano's avatar
Level 1

After this commands is without change. Here is url of page with debug logs turn on: (www)(dot)maticazm(dot)sk

Thank you for your time. Please click on cookie alert close (on top of page).

Stano's avatar
Level 1

Thank you very much. Now is it working correctly. :)

Please or to participate in this conversation.