Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $query = DB::table('mailboxes')
- ->orderBy('last_name', 'asc')
- ->get();
- //return $query;
- $collection = collect($query);
- $take = $collection->take(35);
- $chunck = $collection->splice(36);
- return view('pdf.mailbox', ['data' => $take->all(), 'data2' => $chunck->all()]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement