Add data:sync command

This commit is contained in:
Jani Gyllenberg
2019-01-22 21:30:54 -05:00
parent 3fd1578a70
commit be8c9d781a

View File

@@ -0,0 +1,20 @@
<?php
namespace distinctm\LaravelDataSync\Console\Commands;
use distinctm\LaravelDataSync\Updater;
use Illuminate\Console\Command;
class Sync extends Command
{
protected $signature = 'data:sync';
protected $description = 'Update Models with respective sync data files';
public function handle()
{
$this->info('Updating Models with sync data files');
(new Updater)->run();
$this->comment('Data sync completed');
}
}