Files
2023-03-03 14:22:39 +01:00

39 lines
726 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\Karat\KaratService;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;
class SyncClientsFromKarat extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'karat:sync-clients';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Syncs clients from Karat to our DB';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$karatService = new KaratService();
$karatService->syncClients();
return Command::SUCCESS;
}
}