调整文章

This commit is contained in:
2021-03-30 09:45:18 +08:00
parent fea92e2fea
commit 28035e7a26

View File

@@ -67,7 +67,7 @@ class IndexController extends AdminController
'on' => ['value' => 1, 'text' => '打开', 'color' => 'success'], 'on' => ['value' => 1, 'text' => '打开', 'color' => 'success'],
'off' => ['value' => 0, 'text' => '关闭', 'color' => 'danger'], 'off' => ['value' => 0, 'text' => '关闭', 'color' => 'danger'],
]; ];
$form->datetime('created_at', '发布时间');
$form->switch('status', '状态')->states($states)->default(1); $form->switch('status', '状态')->states($states)->default(1);
return $form; return $form;