diff --git a/src/Illuminate/Foundation/Console/stubs/api-routes.stub b/src/Illuminate/Foundation/Console/stubs/api-routes.stub index 0e7503c70253..ccc387f23bb2 100644 --- a/src/Illuminate/Foundation/Console/stubs/api-routes.stub +++ b/src/Illuminate/Foundation/Console/stubs/api-routes.stub @@ -1,9 +1,8 @@ user(); -})->middleware(Authenticate::using('sanctum')); +})->middleware('auth:sanctum');