From 466e4fbe1a1c403628a1efc965ad7f2a1be73792 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Fri, 4 Jul 2025 12:03:53 +0200 Subject: [PATCH] Delete double `//` from cloning example in TSP stub --- assets/TenancyServiceProvider.stub.php | 28 +++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/assets/TenancyServiceProvider.stub.php b/assets/TenancyServiceProvider.stub.php index 16f14547..84787c0d 100644 --- a/assets/TenancyServiceProvider.stub.php +++ b/assets/TenancyServiceProvider.stub.php @@ -227,23 +227,23 @@ class TenancyServiceProvider extends ServiceProvider /** @var CloneRoutesAsTenant $cloneRoutes */ $cloneRoutes = $this->app->make(CloneRoutesAsTenant::class); - // // The cloning action has two modes: - // // 1. Clone all routes that have the middleware present in the action's $cloneRoutesWithMiddleware property. - // // You can customize the middleware that triggers cloning by using cloneRoutesWithMiddleware() on the action. - // // - // // By default, the middleware is ['clone'], but using $cloneRoutes->cloneRoutesWithMiddleware(['clone', 'universal'])->handle() - // // will clone all routes that have either 'clone' or 'universal' middleware (mentioning 'universal' since that's a common use case). - // // - // // Also, you can use the shouldClone() method to provide a custom closure that determines if a route should be cloned. - // // - // // 2. Clone only the routes that were manually added to the action using cloneRoute(). - // // - // // Regardless of the mode, you can provide a custom closure for defining the cloned route, e.g.: + // The cloning action has two modes: + // 1. Clone all routes that have the middleware present in the action's $cloneRoutesWithMiddleware property. + // You can customize the middleware that triggers cloning by using cloneRoutesWithMiddleware() on the action. + // + // By default, the middleware is ['clone'], but using $cloneRoutes->cloneRoutesWithMiddleware(['clone', 'universal'])->handle() + // will clone all routes that have either 'clone' or 'universal' middleware (mentioning 'universal' since that's a common use case). + // + // Also, you can use the shouldClone() method to provide a custom closure that determines if a route should be cloned. + // + // 2. Clone only the routes that were manually added to the action using cloneRoute(). + // + // Regardless of the mode, you can provide a custom closure for defining the cloned route, e.g.: // $cloneRoutesAction->cloneUsing(function (Route $route) { // RouteFacade::get('/cloned/' . $route->uri(), fn () => 'cloned route')->name('cloned.' . $route->getName()); // })->handle(); - // // This will make all cloned routes use the custom closure to define the cloned route instead of the default behavior. - // // See Stancl\Tenancy\Actions\CloneRoutesAsTenant for more details. + // This will make all cloned routes use the custom closure to define the cloned route instead of the default behavior. + // See Stancl\Tenancy\Actions\CloneRoutesAsTenant for more details. $cloneRoutes->handle(); }