Class 'App\Http\Controllers\Controller' not found I try to upgrade Laravel 4 to 5 base from Laravel Doc and I got Class 'App\Http\Controllers\Controller' not found error in my AuthController. What I was wrong on here?
PS:: I already added namespace App\Http\Controllers; to the top of my controller and yeah already composer dumpautoload
Any idea?
Try this : namespace App\Http\Controllers\Auth; in AuthController.
Is the parent contoller, Controller, properly namespaced?
Did you write use App\Http\Controllers\Controller; at the top of the file?
Run php artisan route:list and check if auth shows up on the list. I think it is a good place to start.
I know the post is older but I just had the same problem and the following fixed the issue for me.
For example, if your application is named "blog", you could run the following command from the root of your installation:
php artisan app:name blog
and then use the name space 'blog\Http\Controllers\Controller' and it fixed my issue.
Thanks AbdulJamil! Your answer resolved my issue.
It work like a charm use App\Http\Controllers\Controller;
Please sign in or create an account to participate in this conversation.