补充菜单
parent
2b44bc6824
commit
6bc1af4d47
|
|
@ -36,7 +36,9 @@ class KeywordController extends AdminController
|
|||
public function form(): Form
|
||||
{
|
||||
return $this->baseForm()->body([
|
||||
TextControl::make()->name('id')->label('Id'),
|
||||
TextControl::make()->name('name')->label('名称')->required(),
|
||||
|
||||
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,5 +11,7 @@ Route::group([
|
|||
|
||||
$router->resource('dashboard', \App\Admin\Controllers\HomeController::class);
|
||||
|
||||
$router->resource('keywords', \App\Admin\Controllers\KeywordController::class);
|
||||
|
||||
$router->resource('system/settings', \App\Admin\Controllers\SettingController::class);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -20,16 +20,37 @@ class AdminMenuSeeder extends Seeder
|
|||
//
|
||||
$menus = [
|
||||
['title' => '主页', 'icon' => 'icon-park:home-two', 'url' => '/dashboard', 'is_home'=>1],
|
||||
['title' => '公众号管理', 'icon' => 'icon-park:wechat', 'url' => '',
|
||||
'children' => [
|
||||
['title' => '公告管理', 'icon' => 'icon-park:volume-notice', 'url' => '/notices'],
|
||||
['title' => '文章分类', 'icon' => 'icon-park:book-one', 'url' => '/article-categories'],
|
||||
['title' => '文章管理', 'icon' => 'icon-park:file-search', 'url' => '/articles'],
|
||||
['title' => '图片位置', 'icon' => 'icon-park:graphic-design-two', 'url' => '/banner-addresses'],
|
||||
['title' => '图片管理', 'icon' => 'icon-park:picture-album', 'url' => '/banners'],
|
||||
]
|
||||
],
|
||||
|
||||
['title' => '区域管理', 'icon' => 'icon-park:category-management', 'url' => '',
|
||||
'children' => [
|
||||
['title' => '分类管理', 'icon' => 'icon-park:graphic-stitching-four', 'url' => '/region-categories'],
|
||||
['title' => '实验田', 'icon' => 'icon-park:freezing-line-column', 'url' => '/regions'],
|
||||
]
|
||||
],
|
||||
['title' => '育秧中心', 'icon' => 'icon-park:lotus', 'url' => '/devices'],
|
||||
['title' => '实验稻田', 'icon' => 'icon-park:four-leaves', 'url' => '/devices'],
|
||||
|
||||
['title' => '育秧中心', 'icon' => 'icon-park:lotus', 'url' => '',
|
||||
'children' => [
|
||||
['title' => '大棚控制', 'icon' => 'icon-park:link-one', 'url' => 'https://www.baidu.com', 'url_type'=>2],
|
||||
['title' => '育秧列表', 'icon' => 'icon-park:more-app', 'url' => '/yuyang1'],
|
||||
]
|
||||
],
|
||||
['title' => '实验稻田', 'icon' => 'icon-park:four-leaves', 'url' => '',
|
||||
'children' => [
|
||||
['title' => '农机控制', 'icon' => 'icon-park:link-one', 'url' => 'https://www.baidu.com', 'url_type'=>2],
|
||||
['title' => '稻田列表', 'icon' => 'icon-park:more-app', 'url' => '/daotian2'],
|
||||
]
|
||||
],
|
||||
|
||||
['title' => '设备管理', 'icon' => 'icon-park:devices', 'url' => '/devices'],
|
||||
['title' => '友情链接', 'icon' => 'icon-park:copy-link', 'url' => '/friend-links'],
|
||||
['title' => '系统管理', 'icon' => 'icon-park:setting', 'url' => '/system',
|
||||
'children' => [
|
||||
['title' => '用户管理', 'icon' => 'icon-park:people-plus', 'url' => '/system/admin_users'],
|
||||
|
|
|
|||
Loading…
Reference in New Issue