<?php namespace BookStack\Providers;
+use BookStack\Services\SettingService;
+use BookStack\Setting;
use Illuminate\Support\ServiceProvider;
use Validator;
\Blade::directive('icon', function($expression) {
return "<?php echo icon($expression); ?>";
});
+
+ // Allow longer string lengths after upgrade to utf8mb4
+ \Schema::defaultStringLength(191);
}
/**
*/
public function register()
{
- //
+ $this->app->singleton(SettingService::class, function($app) {
+ return new SettingService($app->make(Setting::class), $app->make('Illuminate\Contracts\Cache\Repository'));
+ });
}
}