. */ declare(strict_types=1); namespace FireflyIII\Providers; use Adldap\Laravel\Middleware\WindowsAuthenticate; use Illuminate\Support\Facades\Schema; use Illuminate\Support\ServiceProvider; use Laravel\Passport\Passport; use URL; /** * @codeCoverageIgnore * Class AppServiceProvider */ class AppServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot(): void { Schema::defaultStringLength(191); if ('heroku' === config('app.env')) { URL::forceScheme('https'); } if (config('ldap_auth.identifiers.windows.enabled', false)) { $this->app['router']->pushMiddlewareToGroup('web', WindowsAuthenticate::class); } } /** * Register any application services. * * @return void */ public function register(): void { Passport::ignoreMigrations(); } }