theme; View::addNamespace('theme', resource_path("theme/$themeName/views")); View::share('themeResources', "resources/theme/$themeName"); config()->set('image-resizer.templates', themeConfig()['resizes'] ?? []); return $next($request); } }