📜  目标类 [AppController] 不存在. - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:40.711000             🧑  作者: Mango

代码示例4
public function boot()
{
    ...

    Route::prefix('api')
        ->middleware('api')
        ->namespace('App\Http\Controllers') // <---------
        ->group(base_path('routes/api.php'));

    ...
}