📅  最后修改于: 2022-03-11 14:53:38.305000             🧑  作者: Mango
public function boot()
{
...
Route::prefix('api')
->middleware('api')
->namespace('App\Http\Controllers') // <---------
->group(base_path('routes/api.php'));
...
}