theme; return Cache::remember("config-$themeName", 84600, function () use ($themeName) { $themePath = resource_path("theme/$themeName"); $configFile = "$themePath/theme.config.php"; if (!is_dir($themePath)) { Log::error("Le dossier du thème [$themeName] est introuvable : $themePath"); throw new \Exception( "Le dossier du thème [$themeName] est introuvable : $themePath" ); } if (!file_exists($configFile)) { Log::error("Le fichier de config du thème [$themeName] est introuvable : $configFile"); throw new \Exception( "Le fichier de config du thème [$themeName] est introuvable : $configFile" ); } return require $configFile; }); } } //end if