2018-03-12 07:14:34 +08:00
|
|
|
<?php
|
2018-03-20 09:50:40 +08:00
|
|
|
|
2018-03-12 07:14:34 +08:00
|
|
|
namespace App\Providers;
|
|
|
|
|
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
use VaCentral\VaCentral;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap the vaCentral library
|
|
|
|
*/
|
|
|
|
class vaCentralServiceProvider extends ServiceProvider
|
|
|
|
{
|
|
|
|
public function boot()
|
|
|
|
{
|
2018-03-20 09:50:40 +08:00
|
|
|
if (filled(config('vacentral.api_key'))) {
|
2018-03-12 07:14:34 +08:00
|
|
|
VaCentral::setApiKey(config('vacentral.api_key'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|