diff --git a/resources/stubs/module/Providers/RouteServiceProvider.php b/resources/stubs/module/Providers/RouteServiceProvider.php index 67bb9305..85a7c61d 100644 --- a/resources/stubs/module/Providers/RouteServiceProvider.php +++ b/resources/stubs/module/Providers/RouteServiceProvider.php @@ -69,7 +69,7 @@ protected function mapWebRoutes() protected function mapApiRoutes() { Route::group([ - 'middleware' => 'api', + 'middleware' => 'auth:api', 'namespace' => $this->namespace, 'prefix' => 'api', ], function ($router) {