36 lines
733 B
PHP
36 lines
733 B
PHP
|
<?php
|
||
|
|
||
|
namespace Modules\Form;
|
||
|
|
||
|
use Illuminate\Routing\Router;
|
||
|
use Illuminate\Support\ServiceProvider;
|
||
|
use Modules\Form\Components\SettingView;
|
||
|
use App\Setting\SettingFactory;
|
||
|
use App\Form\FormSettings;
|
||
|
|
||
|
class FormServiceProvider extends ServiceProvider
|
||
|
{
|
||
|
/**
|
||
|
* Register services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function register()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Bootstrap services.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function boot()
|
||
|
{
|
||
|
app(SettingFactory::class)->register(FormSettings::class);
|
||
|
|
||
|
app(Router::class)->middleware(['web', 'auth:web'])->group(function ($router) {
|
||
|
$router->get('/setting/form', SettingView::class)->name('setting.form');
|
||
|
});
|
||
|
}
|
||
|
}
|