优化
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user