From c4cf5dc6d557fb7404feb11a6ddfe0985ddd9526 Mon Sep 17 00:00:00 2001 From: Samuel Stancl Date: Tue, 4 Aug 2026 20:57:48 -0700 Subject: [PATCH] Laravel 13.24 support (backport #1476) (#1477) Fixes #1474 Backport of #1476 for v3 --- src/Commands/Seed.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Commands/Seed.php b/src/Commands/Seed.php index dc97ae71..b86987e8 100644 --- a/src/Commands/Seed.php +++ b/src/Commands/Seed.php @@ -21,8 +21,6 @@ class Seed extends SeedCommand */ protected $description = 'Seed tenant database(s).'; - protected $name = 'tenants:seed'; - /** * Create a new command instance. * @@ -30,7 +28,19 @@ class Seed extends SeedCommand */ public function __construct(ConnectionResolverInterface $resolver) { - parent::__construct($resolver); + // See https://github.com/archtechx/tenancy/issues/1474 + if (version_compare(app()->version(), '13.24.0', '>=')) { + $this->signature = 'tenants:seed + {class? : The class name of the root seeder} + {--class=Database\\Seeders\\DatabaseSeeder : The class name of the root seeder} + {--database= : The database connection to seed} + {--force : Force the operation to run when in production}'; + parent::__construct($resolver); + $this->specifyParameters(); + } else { + $this->name = 'tenants:seed'; + parent::__construct($resolver); + } } /**