Requesting a route of a non-existent class

I’m Trying to send request to a route that gives me Target Class [AuthController] does not exist.

So, I’m trying to access a route defined in api.php file.

This is my api.php file.

<?php

use IlluminateHttpRequest;
use IlluminateSupportFacadesRoute;
use AppHttpControllersAuthController;

Route::get("/welcome",[AuthController::class, "helloWorld"]);

This is my AuthController.php file

namespace AppHttpControllers;

use IlluminateHttpRequest;
use AppModelsUser;
use IlluminateSupportFacadesHash;
use IlluminateSupportFacadesValidator;
use Throwable;

class AuthController extends Controller
{
    public function helloWorld(Request $request)
    {
        return response()->json([
            "message" => "Hello World",
        ]);
    }
}

However, trying to access the route gives error Target Class [AuthController] does not exist.

I’m pretty sure that i’ve set up the controller properly. I’m using laravel version 11.31.

I’ve tried the same thing in two different projects but the error is still persists. I’m new to Laravel and don’t know how to fix it. Any help would be appreciated.