|
@@ -19,7 +19,7 @@ class IncomeRecordController extends AdminController
|
|
protected function grid()
|
|
protected function grid()
|
|
{
|
|
{
|
|
return Grid::make(new UserShare(), function (Grid $grid) {
|
|
return Grid::make(new UserShare(), function (Grid $grid) {
|
|
- $grid->with(['user','child','user.parent']);
|
|
|
|
|
|
+ $grid->model()->with(['user','child','user.parent'])->orderBy('id','desc');
|
|
$grid->column('id')->sortable();
|
|
$grid->column('id')->sortable();
|
|
$grid->column('user_id','名称')->display(function () {
|
|
$grid->column('user_id','名称')->display(function () {
|
|
return $this->user->nickname;
|
|
return $this->user->nickname;
|