I have a route that looks like the following in my Laravel 8 application:
Route::middleware(\'auth:api\')->get(\'/user\', function (Request $request) { r