ldc-legaulois/app/Providers/CrmApiServiceProvider.php
Jérémy Munsch bca2c877bf
- bump exception handler
- Remove CRM Api V1 in favor of CRM Api V2
- client version 2.2.1
- updated customer fields + country list
- Moved unsubscribe.php to Specific controller
- refactor getUniquePseudo to Utils
- Moved Auth actions form CustomerController to AuthController
2021-10-21 10:35:37 +02:00

26 lines
539 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;
use LDC\LDCCRM\CrmApiV2;
class CrmApiServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
App::singleton('crmAPI', function () {
return new CrmApiV2(
config('crm.endpoint'),
config('crm.token'),
config('crm.password')
);
});
}
}