Support the ongoing development of Laravel.io →
Laravel Artisan Blade

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

"Illuminate\routing\Controller" there have one mistake routing to Routing . Its replace in "use Illuminate\Routing\Controller" . Hope that it will be works.

0

Step 1 - check your laravel log file to see more details and call stack Step 2 - check your routes file to see if you try to use "Controller" classes without importing the namespace correctly Step 3 - try different types of composer dump-autoload. If you use the authoriative type, it will only find files that was there when you ran the command. If you ran it without any parameters, it will scan the directories each time and find classes that matches PSR-4 autoloading standard.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.