问答详情
源自:3-2 控制器

Controller类未找到 Fatal error: Class 'app\Http\Controllers\Controller' not found in C:\wamp64\www\la\app\Http\Controllers\UserController.php on line 11

贴出代码

<?php


namespace App\Http\Controllers;


use Illuminate\Http\Request;


use App\Http\Requests;

use App\Http\Controllers\Controller;


class UserController extends Controller

{

public function info()

{

echo 123;

}

    //

}

是什么原因导致的类没有找到?当运行同目录下的Controller.php报错为 Fatal error: Class 'Illuminate\Routing\Controller' not found in C:\wamp64\www\la\app\Http\Controllers\Controller.php on line 11

网上查过跟 autoload 自动加载有关系?

提问者:慕粉1309582247 2018-10-10 12:56

个回答

  • 慕移动1811773
    2018-10-11 17:12:44

    相同问题,求解答