Class 'App\Http\Controllers\Employee' not found code example
Example 1: Class 'App\Http\Controllers\View' not found
use Illuminate\Support\Facades\View;
return \View::make('tickets.bus.index');
Example 2: Class 'App\Http\Controllers\Response' not found
use Response;
Or use full namespace:
return \Response::json(...);
Or just use helper:
return response()->json(...);
Example 3: 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.