From e355a376cf71de8b487724e79c957aee17c9ce3c Mon Sep 17 00:00:00 2001 From: younghyeong ryu Date: Tue, 15 Oct 2024 16:35:28 +0900 Subject: [PATCH] t --- src/Console/InstallCommand.php | 23 ++++++---- src/Console/InstallSimpleCommand.php | 64 ---------------------------- 2 files changed, 14 insertions(+), 73 deletions(-) delete mode 100644 src/Console/InstallSimpleCommand.php diff --git a/src/Console/InstallCommand.php b/src/Console/InstallCommand.php index 3a2a8c4..7faf769 100644 --- a/src/Console/InstallCommand.php +++ b/src/Console/InstallCommand.php @@ -1,23 +1,16 @@ installLaravelEditor(); + $composer = $this->argument('composer'); + $type = $this->argument('type'); + if($composer === 'editor') { + switch($type) { + case 'full': + return $this->installLaravelEditor(); + default: + return; + } + } + return; } diff --git a/src/Console/InstallSimpleCommand.php b/src/Console/InstallSimpleCommand.php deleted file mode 100644 index 3be60bd..0000000 --- a/src/Console/InstallSimpleCommand.php +++ /dev/null @@ -1,64 +0,0 @@ -argument('composer'); - $type = $this->argument('type'); - if($composer === 'editor') { - switch($type) { - case 'full': - return $this->installLaravelEditor(); - default: - return; - } - } - return; - } - - - private function installLaravelEditor() - { - - \Artisan::call('storage:link'); - \Artisan::call('vendor:publish', [ - '--force'=> true, - '--provider' => 'Pondol\Editor\EditorServiceProvider' - ]); - $this->info('The laravel editor installed successfully.'); - } - -}