24 lines
503 B
PHP
24 lines
503 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use LDC\LDCCRM\CrmApiV4;
|
|
|
|
class CrmApiServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
App::singleton('crmAPI', fn (): CrmApiV4 => new CrmApiV4(
|
|
config('crm.endpoint'),
|
|
config('crm.token'),
|
|
config('crm.password')
|
|
));
|
|
}
|
|
}
|