From 0b58baefe556a0ce933362f534f756adf48459a6 Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Thu, 16 Nov 2023 14:34:28 +0800 Subject: [PATCH] add migration script --- app/Console/Commands/MigrationOnePercent.php | 49 ++++++++++++++++++ app/Console/Commands/TestOnePercent.php | 54 -------------------- app/Console/Kernel.php | 2 +- 3 files changed, 50 insertions(+), 55 deletions(-) create mode 100644 app/Console/Commands/MigrationOnePercent.php delete mode 100644 app/Console/Commands/TestOnePercent.php diff --git a/app/Console/Commands/MigrationOnePercent.php b/app/Console/Commands/MigrationOnePercent.php new file mode 100644 index 0000000..1aff5b2 --- /dev/null +++ b/app/Console/Commands/MigrationOnePercent.php @@ -0,0 +1,49 @@ + 'KadarUpahSeeder', + ]); + + $this->info('The command was successfully generated!'); + } +} \ No newline at end of file diff --git a/app/Console/Commands/TestOnePercent.php b/app/Console/Commands/TestOnePercent.php deleted file mode 100644 index 5d8af0a..0000000 --- a/app/Console/Commands/TestOnePercent.php +++ /dev/null @@ -1,54 +0,0 @@ -onepercentserv = $onepercentserv; - parent::__construct(); - } - - /** - * Execute the console command. - * - * @return int - */ - public function handle() - { - $pemb = $this->ask('Pembiayaan?'); - $nm = $this->ask('Nilaimarhun?'); - $ku = $this->ask('Kadarujrah?'); - $marg = $this->ask('Margin?'); - - $test = $this->onepercentserv->kiraanKeuntunganSebenar($pemb,$nm,$ku,$marg); - - dd($test); - return $test; - } -} \ No newline at end of file diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index e18917f..3fe6529 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -18,7 +18,7 @@ class Kernel extends ConsoleKernel */ protected $commands = [ Commands\DailyGadai::class, - Commands\TestOnePercent::class, + Commands\MigrationOnePercent::class, ];