user(); }); Route::middleware('auth:api')->any('/user', function (Request $request) { return $request->user(); });