Laravel error 'ReflectionException' - 'Class App\Http\Kernel does not exist'
Check if console/kernel.php
is inside of app
-folder, if not it might be inside of your laravelApp
.
If so, move console/kernel.php
to app
-folder.
In composer.json change:
"psr-4": {
"App\\": "myforms/app/"
}
to:
"psr-4": {
"App\\": "app/"
}
On the server, in your source directory, run composer update
then composer dump-autoload
PSR-4 in Laravel looks for namespaces relative to the root of the project