database:sync
This commit is contained in:
34
app/Console/Commands/SyncFaveoToLatestVersion.php
Normal file
34
app/Console/Commands/SyncFaveoToLatestVersion.php
Normal 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');
|
||||||
|
}
|
||||||
|
}
|
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace App\Console;
|
namespace App\Console;
|
||||||
|
|
||||||
|
use App\Console\Commands\SyncFaveoToLatestVersion;
|
||||||
use App\Model\MailJob\Condition;
|
use App\Model\MailJob\Condition;
|
||||||
use Illuminate\Console\Scheduling\Schedule;
|
use Illuminate\Console\Scheduling\Schedule;
|
||||||
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
|
||||||
@@ -24,6 +25,7 @@ class Kernel extends ConsoleKernel
|
|||||||
\App\Console\Commands\InstallDB::class,
|
\App\Console\Commands\InstallDB::class,
|
||||||
\App\Console\Commands\SetupTestEnv::class,
|
\App\Console\Commands\SetupTestEnv::class,
|
||||||
\App\Console\Commands\SecureFaveoAPPKey::class,
|
\App\Console\Commands\SecureFaveoAPPKey::class,
|
||||||
|
SyncFaveoToLatestVersion::class
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user