database:sync

This commit is contained in:
RafficMohammed
2023-02-28 16:54:24 +05:30
parent 5724ed5361
commit 4037a74fca
2 changed files with 36 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class SyncFaveoToLatestVersion extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'database:sync';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Database sync';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$this->info('database:sync started');
(new \App\Http\Controllers\Update\SyncFaveoToLatestVersion())->sync();
$this->info('database:sync completed');
}
}

View File

@@ -2,6 +2,7 @@
namespace App\Console;
use App\Console\Commands\SyncFaveoToLatestVersion;
use App\Model\MailJob\Condition;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
@@ -24,6 +25,7 @@ class Kernel extends ConsoleKernel
\App\Console\Commands\InstallDB::class,
\App\Console\Commands\SetupTestEnv::class,
\App\Console\Commands\SecureFaveoAPPKey::class,
SyncFaveoToLatestVersion::class
];
/**