[SOLVED] Pagination |
Using this method the pagination is working fine! But how can I filter the data? For example I'm logged with user id: 1 and I want to see only companies that belongs to this user.
Using the instance like this I'll always get all the rows of this table =/ public function list(){ $companyModel = new CompanyModel(); $data = [ 'obj' => $companyModel->paginate(20, 'group1'), 'pager' => $companyModel->pager ]; echo view('Template/header'); echo view('Company/listar', $data); echo view('Template/footer'); } |
Messages In This Thread |
[SOLVED] Pagination - by gabrielcantarin - 05-22-2019, 12:48 PM
RE: Pagination - by kilishan - 05-22-2019, 07:30 PM
RE: Pagination - by gabrielcantarin - 05-23-2019, 04:34 AM
|