38 lines
854 B
PHP
38 lines
854 B
PHP
<?php
|
|
|
|
namespace Modules\Mailgateway;
|
|
|
|
use App\Setting\SettingFactory;
|
|
use Illuminate\Routing\Router;
|
|
use Illuminate\Support\Facades\View;
|
|
use Illuminate\Support\ServiceProvider;
|
|
use Modules\Mailgateway\Components\SettingView;
|
|
|
|
class MailgatewayServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register()
|
|
{
|
|
}
|
|
|
|
/**
|
|
* Bootstrap services.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function boot()
|
|
{
|
|
app(SettingFactory::class)->register(MailgatewaySettings::class);
|
|
|
|
app(Router::class)->middleware(['web', 'auth:web'])->group(function ($router) {
|
|
$router->get('/setting/mailgateway', SettingView::class)->name('setting.mailgateway');
|
|
});
|
|
|
|
View::addNamespace('mailgateway', __DIR__ . '/Components');
|
|
}
|
|
}
|