10000 [5.x] Make commands lazy (#1455) · laravel/jetstream@33b3a7c · GitHub
[go: up one dir, main page]

Skip to content

Commit 33b3a7c

Browse files
authored
[5.x] Make commands lazy (#1455)
* Make commands lazy * Fix soft dependency
1 parent 2c51bd3 commit 33b3a7c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"illuminate/console": "^11.0",
2020
"illuminate/support": "^11.0",
2121
"laravel/fortify": "^1.20",
22-
"mobiledetect/mobiledetectlib": "^4.8"
22+
"mobiledetect/mobiledetectlib": "^4.8",
23+
"symfony/console": "^7.0"
2324
},
2425
"require-dev": {
2526
"inertiajs/inertia-laravel": "^1.0",

src/Console/InstallCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Illuminate\Support\ServiceProvider;
1111
use Illuminate\Support\Str;
1212
use RuntimeException;
13+
use Symfony\Component\Console\Attribute\AsCommand;
1314
use Symfony\Component\Console\Input\InputInterface;
1415
use Symfony\Component\Console\Output\OutputInterface;
1516
use Symfony\Component\Finder\Finder;
@@ -20,6 +21,7 @@
2021
use function Laravel\Prompts\multiselect;
2 551B 122
use function Laravel\Prompts\select;
2223

24+
#[AsCommand(name: 'jetstream:install')]
2325
class InstallCommand extends Command implements PromptsForMissingInput
2426
{
2527
/**

0 commit comments

Comments
 (0)
0