Skip to content
Advertisement

Class AppHttpControllersWelcomeController does not exist

I’m new in Laravel and I can’t understand why the controller doesn’t work. Can you help me? Thanks.

This is the routes.php file:

routes.php

This is the WelcomeController controller:

WelcomeController.php

and this is the exception trowed:

ReflectionException in Container.php line 737:

Class AppHttpControllersWelcomeController does not exist

Advertisement

Answer

You need a WelcomeController.php file in directory Controllers, and you have it in Controllers/Auth

I’d suggest to:

$>php artisan make:controller WelcomeController
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement