PHP code example of professionalweb / carrot-quest-laravel
1. Go to this page and download the library: Download professionalweb/carrot-quest-laravel library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
professionalweb / carrot-quest-laravel example snippets
return [
'url' => 'https://api.carrotquest.io/v1',
'auth_token' => '%auth_token%',
];
...
use professionalweb\CarrotQuest\Interfaces\Services\CarrotQuestService;
...
public function createUser(CarrotQuestService $service):void
{
// Get user model
// Create if not exists
$carrotUser = $service
->users()
->setUserId(13)
->user()
->byUserId()
->get();
}
...