mirror of
https://gitlab.com/signalytic/client-external/streamline/streamline-emr.git
synced 2026-09-13 11:41:31 +00:00
updated streamline-setup v2
This commit is contained in:
@@ -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
|
||||
{
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user