15
0

solved – Laravel 8 Target class controller does not exist

15
Reading Time: < 1 minute

You may find an error Target class […Controller] does not exist for example in early versions of laravel 8, or when you migrate to laravel 8 from previous versions of laravel, or just generally when you miss some concept for example in namespacing etc.

This is a solution to this common laravel error of Target class controller not found.

In laravel 8, to define your routes, use the Fully Qualified Class Name for your Controllers when namespace prefixing is not used:

 

Leave a Reply

Your email address will not be published.