add menu
parent
bd03c095fc
commit
9183e81cc3
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue