4
0
Fork 0
master
panliang 2022-10-12 14:02:21 +08:00
parent bd03c095fc
commit 9183e81cc3
3 changed files with 32 additions and 18 deletions

View File

@ -6,14 +6,20 @@ use Dcat\Admin\Extend\ServiceProvider;
class BannerServiceProvider extends ServiceProvider class BannerServiceProvider extends ServiceProvider
{ {
// protected $menu = [
// ['parent' => '', 'title' => '广告管理', 'icon' => 'feather icon-image', 'uri' => ''],
// ['parent' => '广告管理', 'title' => '广告位置', 'icon' => '', 'uri' => 'banner-ads'],
// ['parent' => '广告管理', 'title' => '广告内容', 'icon' => '', 'uri' => 'banners'],
// ];
public function init() public function init()
{ {
parent::init(); parent::init();
} }
protected function menu()
{
if (config('app.debug')) {
return [
['parent' => '', 'title' => '广告管理', 'icon' => 'feather icon-image', 'uri' => ''],
['parent' => '广告管理', 'title' => '广告位置', 'icon' => '', 'uri' => 'banner-ads'],
['parent' => '广告管理', 'title' => '广告内容', 'icon' => '', 'uri' => 'banners'],
];
}
return $this->menu;
}
} }

View File

@ -6,12 +6,18 @@ use Dcat\Admin\Extend\ServiceProvider;
class KeywordsServiceProvider extends ServiceProvider class KeywordsServiceProvider extends ServiceProvider
{ {
// protected $menu = [
// ['title' => 'Keywords', 'uri' => 'keywords', 'icon' => 'feather icon-list'],
// ];
public function init() public function init()
{ {
parent::init(); parent::init();
} }
protected function menu()
{
if (config('app.debug')) {
return [
['title' => 'Keywords', 'uri' => 'keywords', 'icon' => 'feather icon-list'],
];
}
return $this->menu;
}
} }

View File

@ -6,16 +6,18 @@ use Dcat\Admin\Extend\ServiceProvider;
class SettingServiceProvider extends ServiceProvider class SettingServiceProvider extends ServiceProvider
{ {
// protected $menu = [
// ['title' => '配置管理', 'uri' => 'settings', 'icon' => 'fa fa-gear'],
// ];
public function register()
{
}
public function init() public function init()
{ {
parent::init(); parent::init();
} }
protected function menu()
{
if (config('app.debug')) {
return [
['title' => '配置管理', 'uri' => 'settings', 'icon' => 'fa fa-gear'],
];
}
return $this->menu;
}
} }