ldc-gen-game-web/app/Providers/CrmApiServiceProvider.php
2026-10-20 12:27:49 +02:00

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')
));
}
}