i'm need to use paginate but i used get() before for some reasons so how i can use paginate()
after get() ?
when i try
$s = Lists::where('id','>',500)->get();
$s = $s->paginate(2);
var_dump($s);
i get
Call to undefined method Illuminate\Database\Eloquent\Collection::paginate();
i do every thing go skip get() before but it's big problem any one have any idea
sample
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire