First commit

This commit is contained in:
Maxime Renou
2020-05-11 16:26:34 +02:00
commit ba104bd674
9 changed files with 754 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
<?php
namespace Bluesquare\Connect;
use Illuminate\Support\ServiceProvider;
class ConnectServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
$this->mergeConfigFrom(
__DIR__ . '/../config/bconnect.php',
'bmail'
);
$this->app->singleton(Connect::class, function ($app) {
return new Connect($app);
});
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
$this->publishes([
__DIR__ . '/../config/bconnect.php' => config_path('bconnect.php')
], 'config');
}
}