Files
jandl-taskmanager-app/be/app/Console/Commands/SyncUsersFromKarat.php
2023-02-27 15:32:59 +01:00

39 lines
718 B
PHP

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