<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\CmsHelp\Util; use Illuminate\Support\Facades\Cache; use ModStart\Core\Util\TreeUtil; class CmsHelpQuickNavUtil { public static function clearCache() { Cache::forget('CmsHelp:QuickNav'); } public static function all() { return Cache::remember('CmsHelp:QuickNav', 60, function () { return TreeUtil::modelToTree('cms_help_quick_nav', array('name', 'summary', 'image', 'link')); }); } }