phpvms/app/Providers/vaCentralServiceProvider.php

21 lines
390 B
PHP
Raw Normal View History

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use VaCentral\VaCentral;
/**
* Bootstrap the vaCentral library
* @package App\Providers
*/
class vaCentralServiceProvider extends ServiceProvider
{
public function boot()
{
if (filled(config('vacentral.api_key'))) {
VaCentral::setApiKey(config('vacentral.api_key'));
}
}
}