This commit is contained in:
2020-10-16 16:41:08 +08:00
parent 88511c7ab2
commit d43f4b4974
10 changed files with 173 additions and 97 deletions

View File

@@ -16,7 +16,7 @@ class CouponController extends AdminController
protected function grid()
{
$grid = new Grid(new ActivityCoupon);
$grid->model()->latest();
$grid->model()->with(['outlet'])->latest();
$grid->disableActions();
$grid->disableCreateButton();

View File

@@ -73,7 +73,7 @@ class IndexController extends AdminController
protected function grid()
{
$grid = new Grid(new Activity);
$grid->model()->with(['grants.user', 'verifications.user']);
$grid->actions(function ($actions) {
$actions->disableView();
});