Answer the question
In order to leave comments, you need to log in
How to assign keys when using paginate?
Hello, I have the code:
DB::table($this->table)
->select(array('id', 'title', 'type', 'city', 'amount', 'counts', 'weekend'))
->orderBy('id', 'asc')
->remember(60)
->paginate(10);
Answer the question
In order to leave comments, you need to log in
DB::table($this->table)
->select(array('id', 'title', 'type', 'city', 'amount', 'counts', 'weekend'))
->orderBy( 'id', 'asc')
->remember(60)
->paginate(key, 10);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question