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 LogController extends AdminController
function grid()
{
$grid = new Grid(new AccountLog);
$grid->model()->latest();
$grid->model()->with(['account'])->latest();
$userId = request()->user_id;
$grid->model()->when($userId, function ($query, $userId) {
$query->where('user_id', $userId);