updated streamline-setup v2

This commit is contained in:
2025-01-15 08:53:49 -08:00
committed by alec.turner
parent a2ce9248f0
commit 4b569f81b0
20228 changed files with 2932048 additions and 63204 deletions
@@ -4,7 +4,9 @@ namespace Laravel\Ui;
use Illuminate\Console\Command;
use InvalidArgumentException;
use Symfony\Component\Console\Attribute\AsCommand;
#[AsCommand(name: 'ui:auth')]
class AuthCommand extends Command
{
/**
@@ -116,7 +118,7 @@ class AuthCommand extends Command
$controller = app_path('Http/Controllers/HomeController.php');
if (file_exists($controller) && ! $this->option('force')) {
if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?")) {
if ($this->components->confirm("The [HomeController.php] file already exists. Do you want to replace it?", true)) {
file_put_contents($controller, $this->compileStub('controllers/HomeController'));
}
} else {
@@ -126,7 +128,7 @@ class AuthCommand extends Command
$baseController = app_path('Http/Controllers/Controller.php');
if (file_exists($baseController) && ! $this->option('force')) {
if ($this->components->confirm("The [Controller.php] file already exists. Do you want to replace it?")) {
if ($this->components->confirm("The [Controller.php] file already exists. Do you want to replace it?", true)) {
file_put_contents($baseController, $this->compileStub('controllers/Controller'));
}
} else {
@@ -5,8 +5,10 @@ namespace Laravel\Ui;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Support\Str;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Finder\SplFileInfo;
#[AsCommand(name: 'ui:controllers')]
class ControllersCommand extends Command
{
/**
@@ -4,7 +4,9 @@ namespace Laravel\Ui;
use Illuminate\Console\Command;
use InvalidArgumentException;
use Symfony\Component\Console\Attribute\AsCommand;
#[AsCommand(name: 'ui')]
class UiCommand extends Command
{
/**