protected function load($type, $key)
{
$cacheKey = "{$type}:{$key}";
$json = Cache::rememberForever($cacheKey, function () use($type, $key) {
$definition = base_path("database/manifest/{$type}/{$key}.php");
if (is_file($definition)) {
return require $definition;
}
return null;
});
if (empty($json)) {
Cache::forget($cacheKey);
}
return $json;
}