phpvms/app/Providers/AppServiceProvider.php

28 lines
568 B
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
namespace App\Providers;
2018-02-21 12:33:09 +08:00
use App\Repositories\SettingRepository;
use App\Services\ModuleService;
use Illuminate\Support\Facades\Schema;
2017-06-09 02:28:26 +08:00
use Illuminate\Support\ServiceProvider;
use View;
2017-06-09 02:28:26 +08:00
class AppServiceProvider extends ServiceProvider
{
public function boot(): void
2017-06-09 02:28:26 +08:00
{
Schema::defaultStringLength(191);
$this->app->bind('setting', SettingRepository::class);
View::share('moduleSvc', app(ModuleService::class));
2017-06-09 02:28:26 +08:00
}
/**
* Register any application services.
*/
public function register(): void
2017-06-09 02:28:26 +08:00
{
2017-06-09 02:28:26 +08:00
}
}