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

39 lines
730 B
PHP

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