InterviewSolution
Saved Bookmarks
| 1. |
How to use skip() and take() in Laravel Query? |
|
Answer» We can use SKIP() and take() both methods to limit the number of results in the query. skip() is used to skip the number of results and take() is used to get the number of RESULT from the query. Example$posts = DB::table('blog')->skip(5)->take(10)->get(); // skip first 5 records |
|