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