andersao / andersao/l5-repository
paginate with findWhere
Aperta
- Lingua principale
- PHP
- Stelle
- 4.2k
- Fork
- 880
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
We can limit the number of results with paginate method but we can't use findWhere or we can't filter any data like where clause with pagination
$employees = $this->employeeRepository->paginate(10, ['id','employee_name','employee_email']);
OR
//$employees = $this->employeeRepository->findWhere(['employee_name'=>'vittal'], ['id','employee_name','employee_email']);
we can use any one method, but we can't club these two method than how do we get pagination with filter data
give me some solution how to use paginate and findWhere to get filter data
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.