Initial setup command

This commit is contained in:
Deon George 2021-05-08 16:39:22 +10:00
parent 5e5d0d6c3d
commit 503b775c49
1 changed files with 34 additions and 0 deletions

View File

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