dongyuan8312 2018-06-12 05:56
浏览 114

Laravel类在视图中找不到

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.

  • 写回答

0条回答 默认 最新

    报告相同问题?