Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1.       $query = DB::table('mailboxes')
  2.                 ->orderBy('last_name', 'asc')
  3.                ->get();
  4.                //return $query;
  5.       $collection = collect($query);
  6.       $take = $collection->take(35);
  7.       $chunck = $collection->splice(36);
  8.                return view('pdf.mailbox', ['data' => $take->all(), 'data2' => $chunck->all()]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement