page((int)$page, (int)$limit)->select(); $count = $model->count(); return compact('data', 'count'); } }