2021-05-08 06:39:22 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
|
|
|
|
use Database\Seeders\InitialSetupSeeder;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
|
|
|
|
class InitialSetup extends Command
|
|
|
|
{
|
2023-06-27 07:39:11 +00:00
|
|
|
/**
|
|
|
|
* The name and signature of the console command.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $signature = 'initial:setup';
|
2021-05-08 06:39:22 +00:00
|
|
|
|
2023-06-27 07:39:11 +00:00
|
|
|
/**
|
|
|
|
* The console command description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $description = 'Initial Setup of DB';
|
2021-05-08 06:39:22 +00:00
|
|
|
|
2023-06-27 07:39:11 +00:00
|
|
|
/**
|
|
|
|
* Execute the console command.
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
2021-05-08 06:39:22 +00:00
|
|
|
Artisan::call('db:seed',['class'=>InitialSetupSeeder::class]);
|
|
|
|
}
|
2023-06-27 07:39:11 +00:00
|
|
|
}
|