From 8e140992756c923729aa859b79970592167a3be6 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Tue, 19 Mar 2024 11:49:12 +1100 Subject: [PATCH 1/2] Make commands lazy --- src/Console/Commands/PruneExpired.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Console/Commands/PruneExpired.php b/src/Console/Commands/PruneExpired.php index 82df3b28..e0832992 100644 --- a/src/Console/Commands/PruneExpired.php +++ b/src/Console/Commands/PruneExpired.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use Laravel\Sanctum\Sanctum; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'sanctum:prune-expired')] class PruneExpired extends Command { /** From a070f93bed28436b3ba0df5c56b67a3ae99ef3c2 Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Tue, 19 Mar 2024 11:49:17 +1100 Subject: [PATCH 2/2] Fix soft dependency --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 1eb68777..97509bbf 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,8 @@ "illuminate/console": "^11.0", "illuminate/contracts": "^11.0", "illuminate/database": "^11.0", - "illuminate/support": "^11.0" + "illuminate/support": "^11.0", + "symfony/console": "^7.0" }, "require-dev": { "mockery/mockery": "^1.6",