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