fix serviceprovider
Tweak checking for middleware
Just use config

Doesn't use any views/langs