laravel 8 target class controller does not exist

laravel 8 target class controller does not exist

In this tutorial, we will tell you how we can solve the target class controller does not exist in Laravel 8. You know that Laravel 8 was released a few days ago. They modified the routing system a bit from the different version of Laravel.

In this example, we will solve the routing problem in Laravel 8, because there are no target class apphttpcontrollers. so we have two solutions. one is to use the class name in the route file and the second is to define the namespace in RouteServiceProvider.php.

use the class name in the route file

routes/web.php

define the namespace in RouteServiceProvider.php

app/Providers/RouteServiceProvider.php

routes/web.php

Read Also
Laravel 8 Get Current URL With Parameters
Laravel 8 Cron Job Scheduling Example Tutorial
Laravel 8 Import Export Excel & Csv File Example Tutorial

Please follow and like us: