Support the ongoing development of →
Configuration Architecture
Last updated 3 months ago.

The first line should read

<?php namespace App\Http\Controllers;

and does your Auth controller have the line

use App\Http\Controllers\Controller;

at the top?

Last updated 7 years ago.

Doing an upgrade from 4.2 to 5 and having this issue as well. I've tried jacksoncharles suggestions, but they didn't fix the issue at hand. Anyone have any further advice/suggestions?


Did you update your composer.json to use psr-4 ?

	"psr-4": {
		"App\\": "app/"
Last updated 7 years ago.

Yes. I am using the composer.json from the Laravel 5 install and it includes psr-4.


I am facing similar problem when migrating from Laravel 4.2 to 5 (Laravel 4.2 to 5 Class 'App\Http\Controllers\Controller' not found ). Would appreciate any pointers in this regards.


Sign in to participate in this thread!


Your banner here too?

paulocoghi paulocoghi paulocoghi Joined 13 Feb 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 - All rights reserved.