Skip to content

Commit

Permalink
package initilizer integrated
Browse files Browse the repository at this point in the history
  • Loading branch information
Raza9798 committed Jun 17, 2024
1 parent 81f04e7 commit d53938f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Console/Commands/InitilizeCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

namespace Intelrx\Rapidkit\Console\Commands;

use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Str;

class InitilizeCommand extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'rapid:install';

/**
* The console command description.
*
* @var string
*/
protected $description = 'Install and configure RapidKit package.';

/**
* Execute the console command.
*/
public function handle()
{
$this->info('Installing RapidKit package...');
}
}
3 changes: 3 additions & 0 deletions src/RapidKitProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

namespace Intelrx\Rapidkit;

use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\ServiceProvider;
use Intelrx\Rapidkit\Console\Commands\InitilizeCommand;
use Intelrx\Rapidkit\Console\Commands\ResourceGeneratorCommand;

class RapidKitProvider extends ServiceProvider
Expand All @@ -23,6 +25,7 @@ public function boot(): void
if ($this->app->runningInConsole()) {
$this->commands([
ResourceGeneratorCommand::class,
InitilizeCommand::class,
]);
}
}
Expand Down

0 comments on commit d53938f

Please sign in to comment.