Skip to content
Permalink
Browse files

add auth option

  • Loading branch information
taylorotwell committed Nov 18, 2019
1 parent e5ae718 commit f5ebbff32f9ff9c40fdf4c200cb2f396050e3cf3
Showing with 9 additions and 1 deletion.
  1. +1 −1 laravel
  2. +8 −0 src/NewCommand.php
@@ -7,7 +7,7 @@ if (file_exists(__DIR__.'/../../autoload.php')) {
require __DIR__.'/vendor/autoload.php';
}
$app = new Symfony\Component\Console\Application('Laravel Installer', '2.2.0');
$app = new Symfony\Component\Console\Application('Laravel Installer', '2.2.2');
$app->add(new Laravel\Installer\Console\NewCommand);
$app->run();
@@ -28,6 +28,7 @@ protected function configure()
->setDescription('Create a new Laravel application')
->addArgument('name', InputArgument::OPTIONAL)
->addOption('dev', null, InputOption::VALUE_NONE, 'Installs the latest "development" release')
->addOption('auth', null, InputOption::VALUE_NONE, 'Installs the Laravel authentication scaffolding')
->addOption('force', 'f', InputOption::VALUE_NONE, 'Forces install even if the directory already exists');
}
@@ -131,6 +132,9 @@ protected function download($zipFile, $version = 'master')
case 'develop':
$filename = 'latest-develop.zip';
break;
case 'auth':
$filename = 'latest-auth.zip';
break;
case 'master':
$filename = 'latest.zip';
break;
@@ -215,6 +219,10 @@ protected function getVersion(InputInterface $input)
return 'develop';
}
if ($input->getOption('auth')) {
return 'auth';
}
return 'master';
}

0 comments on commit f5ebbff

Please sign in to comment.
You can’t perform that action at this time.