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');
}
}