阶段更新
This commit is contained in:
@@ -17,6 +17,7 @@ class IndexController extends AdminController
|
||||
{
|
||||
$grid = new Grid(new Advert);
|
||||
|
||||
$grid->model()->latest();
|
||||
$grid->actions(function ($actions) {
|
||||
$actions->disableView();
|
||||
});
|
||||
@@ -37,6 +38,7 @@ class IndexController extends AdminController
|
||||
$grid->column('title', '图片名称');
|
||||
// $grid->column('url', '地址')->width(80);
|
||||
$grid->column('sort', '排序');
|
||||
$grid->column('created_at','添加时间');
|
||||
|
||||
return $grid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user