feat: new xboard

This commit is contained in:
xboard committed 2025-01-21 14:57:54 +08:00
1 parent 4826ee72e3
commit a9516400c6
373 files changed
+17923 -20264

No files matched your search

@@ -12,8 +12,8 @@ class NoticeController extends Controller
{
$current = $request->input('current') ? $request->input('current') : 1;
$pageSize = 5;
$model = Notice::orderBy('created_at', 'DESC')
->where('show', 1);
$model = Notice::orderBy('sort', 'ASC')
->where('show', true);
$total = $model->count();
$res = $model->forPage($current, $pageSize)
->get();