22 lines
463 B
PHP
22 lines
463 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use Illuminate\Support\Facades\App;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use App\Lib\LDCCRM\ApiV1;
|
|
|
|
class CrmApiServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Bootstrap the application services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
App::singleton('crmApi', function () {
|
|
return new ApiV1(config('crm.CRM_ENDPOINT'), config('crm.CRM_API_TOKEN'));
|
|
});
|
|
}
|
|
}
|