When I call function which user the user controller it works fine but when i call any other function of any other controller it give error that class not found
Class 'App\Http\Controllers\user\UserController' not found
<?php use App\Http\Controllers\user\UserController;
$userCounts = UserController::usercounts();
//print_r($userCounts);?>
this is what I am using in my view file and it work fine when I call any function of user controller. I am calling a user controller function in view.