Skip to content
Advertisement

Laravel:8.x Target class [ArticlesController] does not exist [closed]

Hello my code is giving me this error: “Target class [ArticlesController] does not exist.” i tried to uncomment “protected $namespace = ‘AppHttpControllers’;” in RouteServiceProvider then it says: “Class ‘AppHttpControllersArticle’ not found”

ArticlesController:

JavaScript

Route:

JavaScript

Advertisement

Answer

Since Laravel 8 the route syntax has changed. You have to define the full path for controller class and specify the method.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement