Browse Source

修改banner查看详情

master
liangyuyan 6 years ago
parent
commit
da84249c3c
  1. 41
      app/Admin/Controllers/v3/BannerController.php

41
app/Admin/Controllers/v3/BannerController.php

@ -58,19 +58,34 @@ class BannerController extends AdminController
protected function detail($id) protected function detail($id)
{ {
return Show::make($id, new Banner(), function (Show $show) { return Show::make($id, new Banner(), function (Show $show) {
$show->field('id');
$show->field('market_id');
$show->field('title');
$show->field('sub_title');
$show->field('cover');
$show->field('cover_type');
$show->field('path');
$show->field('path_type');
$show->field('sort');
$show->field('status');
$show->field('type');
$show->field('created_at');
$show->field('updated_at');
$show->row(function (Show\Row $show) {
$show->width(6)->field('id');
$show->width(6)->field('market_id');
$show->width(6)->field('cover_type');
$show->width(6)->field('cover')->image();
$show->width(6)->field('type');
$show->width(6)->field('sort');
$show->width(6)->field('created_at');
});
$show->row(function (Show\Row $show) {
$show->width(6)->field('title');
$show->width(6)->field('sub_title');
$show->width(6)->field('path_type');
$show->width(6)->field('path');
$show->width(6)->field('status');
$show->width(6)->field('updated_at');
});
}); });
} }

Loading…
Cancel
Save