2020-05-11 16:26:34 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Bluesquare\Connect;
|
|
|
|
|
2020-05-11 16:49:01 +02:00
|
|
|
use Bluesquare\Connect\View\Components\Button;
|
2020-05-11 16:26:34 +02:00
|
|
|
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);
|
|
|
|
});
|
2020-05-11 16:49:01 +02:00
|
|
|
|
|
|
|
$this->loadViewsFrom(__DIR__.'/../resources/views/connect', 'connect');
|
|
|
|
|
|
|
|
$this->publishes([
|
|
|
|
__DIR__.'/../resources/views/connect' => resource_path('views/vendor/connect'),
|
|
|
|
]);
|
|
|
|
|
|
|
|
$this->loadViewComponentsAs('connect', [
|
|
|
|
Button::class
|
|
|
|
]);
|
2020-05-11 16:26:34 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap any application services.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function boot()
|
|
|
|
{
|
|
|
|
$this->publishes([
|
|
|
|
__DIR__ . '/../config/bconnect.php' => config_path('bconnect.php')
|
|
|
|
], 'config');
|
|
|
|
}
|
|
|
|
}
|