4
0
Fork 0
panliang 2022-09-16 17:27:03 +08:00
parent b65943d4b9
commit 507523f09b
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class BannerAdController extends AdminController
$query->where('name', 'like', '%'.$request->input('q').'%');
}
$query->select(['id', 'name as text', 'width', 'height']);
if ($request->filled('_paginate')) {
$list = $query->paginate();
} else {