Mercurial > packages > auth
diff src/Console/InstallCommand.php @ 2:ac199a7a8931 default tip
Changes to the views and only defualt option is available
| author | luka |
|---|---|
| date | Tue, 19 Aug 2025 20:32:36 -0400 |
| parents | 90e38de8f2ba |
| children |
line wrap: on
line diff
--- a/src/Console/InstallCommand.php Thu Aug 14 21:09:25 2025 -0400 +++ b/src/Console/InstallCommand.php Tue Aug 19 20:32:36 2025 -0400 @@ -3,7 +3,6 @@ namespace Wizard\Auth\Console; use Illuminate\Console\Command; -use Illuminate\Contracts\Console\PromptsForMissingInput; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Arr; use Illuminate\Support\Str; @@ -19,8 +18,8 @@ use function Laravel\Prompts\multiselect; use function Laravel\Prompts\select; -#[AsCommand(name: 'breeze:install')] -class InstallCommand extends Command implements PromptsForMissingInput +#[AsCommand(name: 'auth:install')] +class InstallCommand extends Command { use InstallsBladeStack; @@ -29,14 +28,14 @@ * * @var string */ - protected $signature = 'breeze:install {stack : The development stack that should be installed (blade)}'; + protected $signature = 'auth:install'; /** * The console command description. * * @var string */ - protected $description = 'Install the Breeze controllers and resources'; + protected $description = 'Install the Basic Auth controllers and resources'; /** * Execute the console command. @@ -57,11 +56,7 @@ { (new Filesystem)->ensureDirectoryExists(base_path('tests/Feature')); - $stubStack = match ($this->argument('stack')) { - default => 'default', - }; - - (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/'.$stubStack.'/tests/Feature', base_path('tests/Feature')); + (new Filesystem)->copyDirectory(__DIR__.'/../../stubs/default/tests/Feature', base_path('tests/Feature')); return true; } @@ -340,34 +335,6 @@ } /** - * Prompt for missing input arguments using the returned questions. - * - * @return array - */ - protected function promptForMissingArgumentsUsing() - { - return [ - 'stack' => fn () => select( - label: 'Which Breeze stack would you like to install?', - options: [ - 'blade' => 'Blade', - ], - scroll: 6, - ), - ]; - } - - /** - * Interact further with the user if they were prompted for missing arguments. - * - * @return void - */ - protected function afterPromptingForMissingArguments(InputInterface $input, OutputInterface $output) - { - $stack = $input->getArgument('stack'); - } - - /** * Determine whether the project is already using Pest. * * @return bool
