src/Providers/RouteServiceProvider.php
public function boot()
    {
        if (Seo::getConfig('redirector.enabled', false))
            $this->app->make(HttpKernel::class)->pushMiddleware(RedirectsMissingPages::class);

        parent::boot();
    }
public function boot()
    {
        if (Seo::getConfig('redirector.enabled', false))
            $this->app->make(HttpKernel::class)->pushMiddleware(RedirectsMissingPages::class);

        parent::boot();
    }
Bootstrap any application services.