Answers for "Class "App\Http\Controllers\User" not found"

PHP
0

Class "App\Http\Controllers\Auth" not found

use Illuminate\Support\Facades\Auth;
Posted by: Guest on June-09-2021
0

Class 'App\Http\Controllers\View' not found

use Illuminate\Support\Facades\View;

return \View::make('tickets.bus.index');
Posted by: Guest on October-22-2020
1

Class 'App\Http\Controllers\Auth' not found

Because your controller is namespaced unless you specifically import the Auth namespace, PHP will assume it's under the namespace of the class, giving this error.

To fix this, add use Auth; at the top of AdminHomeController file along with your other use statements or alternatively prefix all instances of Auth with backslash like this: \Auth to let PHP know to load it from the global namespace.
Posted by: Guest on November-17-2020

Code answers related to "Class "App\Http\Controllers\User" not found"

Browse Popular Code Answers by Language