Routing namespaces have been updated on Laravel 8.X
On your router, you should define:
use AppHttpControllersTestController;
And then, declare:
Route::get('test',[TestController::class, 'test']);
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
//first check your route is there in route:list, if it it here
//then Some times it occurs because of url mismatch
//url in laravel is case senstive so make sure your whole url is correct.