ldc-tregalette/app/Providers/CrmApiServiceProvider.php

27 lines
539 B
PHP
Raw Permalink Normal View History

2023-12-15 15:53:55 +00:00
<?php
namespace App\Providers;
use Illuminate\Support\Facades\App;
use Illuminate\Support\ServiceProvider;
2024-07-16 15:55:49 +00:00
use LDC\LDCCRM\CrmApiV4;
2023-12-15 15:53:55 +00:00
class CrmApiServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
{
App::singleton('crmAPI', function () {
2024-07-16 15:55:49 +00:00
return new CrmApiV4(
2023-12-15 15:53:55 +00:00
config('crm.endpoint'),
config('crm.token'),
config('crm.password')
);
});
}
}