From d9dfca57a9062c31cb3ac59fd865ab342c154746 Mon Sep 17 00:00:00 2001 From: raza9798 Date: Mon, 17 Jun 2024 22:02:41 +0530 Subject: [PATCH] package installation setup updated --- src/Controller/BackupController.php | 4 +--- src/RapidKitProvider.php | 6 +++++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Controller/BackupController.php b/src/Controller/BackupController.php index f250248..e3c463e 100644 --- a/src/Controller/BackupController.php +++ b/src/Controller/BackupController.php @@ -30,8 +30,6 @@ public function configureDatabaseDump(){ } else { (new Banner())->error('Failed to update config file'); } - } else { - (new Banner())->error('Configuration already exsists'); - } + } } } diff --git a/src/RapidKitProvider.php b/src/RapidKitProvider.php index 94509bc..f2b35f3 100644 --- a/src/RapidKitProvider.php +++ b/src/RapidKitProvider.php @@ -4,6 +4,8 @@ use Illuminate\Support\Facades\Artisan; use Illuminate\Support\ServiceProvider; +use Intelrx\Rapidkit\assets\Banner; +use Intelrx\Rapidkit\Config\Config; use Intelrx\Rapidkit\Console\Commands\InitilizeCommand; use Intelrx\Rapidkit\Console\Commands\ResourceGeneratorCommand; use Intelrx\Rapidkit\Console\Commands\RapidKitSupportCommand; @@ -30,7 +32,9 @@ public function boot(): void RapidKitSupportCommand::class, ]); - Artisan::call("rapid:install"); + (new Banner())->renderTitle('RapidKit is ready to use!'); + (new Banner())->line("LARAVEL RAPID KIT " . Config::VERSION); + (new Banner())->line("Type 'php artisan rapid:install' to install and configure RapidKit package."); }