RepCard SDK for Laravel.
Install the package via Composer:
composer require eliosfund/repcard-php-sdk
Publish the config file:
php artisan vendor:publish --tag=repcard-config
Set the following environment variables in your .env
file:
REPCARD_API_KEY=your-api-key
REPCARD_COMPANY_ID=your-company-id
In config/repcard.php
, add the role names you want to allow when creating or updating a user, e.g.:
'roles' => [
'Sales',
'Sales Manager',
],
use RepCard\Facades\RepCard;