diff --git a/composer.json b/composer.json index e279f97..2f41d91 100644 --- a/composer.json +++ b/composer.json @@ -15,7 +15,8 @@ "ergebnis/json-printer": "^3.5", "inertiajs/inertia-laravel": ">=1.0", "laravel/framework": ">=11.0", - "laravel/prompts": "^0.1" + "laravel/prompts": "^0.1", + "symfony/console": "^7.0" }, "require-dev": { "laravel/pint": "^1.13" diff --git a/src/Commands/IdeHelperCommand.php b/src/Commands/IdeHelperCommand.php index 5f61a85..349560c 100644 --- a/src/Commands/IdeHelperCommand.php +++ b/src/Commands/IdeHelperCommand.php @@ -3,7 +3,9 @@ namespace Inertia\Commands; use Illuminate\Console\Command; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'inertia:ide-helper')] class IdeHelperCommand extends Command { /** diff --git a/src/Commands/InstallCommand.php b/src/Commands/InstallCommand.php index bb7c656..1da03ba 100644 --- a/src/Commands/InstallCommand.php +++ b/src/Commands/InstallCommand.php @@ -7,10 +7,12 @@ use Illuminate\Support\Composer; use Illuminate\Support\Facades\Process; use Inertia\Support\NodePackageManager; +use Symfony\Component\Console\Attribute\AsCommand; use function Laravel\Prompts\multiselect; use function Laravel\Prompts\select; +#[AsCommand(name: 'inertia:install')] class InstallCommand extends Command { /** diff --git a/src/Commands/UiCommand.php b/src/Commands/UiCommand.php index faa2295..a0b72de 100644 --- a/src/Commands/UiCommand.php +++ b/src/Commands/UiCommand.php @@ -4,7 +4,9 @@ use Illuminate\Console\Command; use InvalidArgumentException; +use Symfony\Component\Console\Attribute\AsCommand; +#[AsCommand(name: 'inertia:ui')] class UiCommand extends Command { /**