remove pagination for admin bookings

This commit is contained in:
Omair Saleh
2019-07-08 12:26:45 +08:00
parent 9feb38421f
commit 96a0a72390
+1 -1
View File
@@ -128,7 +128,7 @@ class BookingController extends Controller
}
public function adminIndex(?string $userId = null){
$bookings = Booking::UserBooking($userId)->InCompleteOrders()->orderby('updated_at', "desc")->get();
$bookings = Booking::UserBooking($userId)->InCompleteOrders()->orderby('updated_at', "desc")->paginate(10000);
// reformat to fit frontend structure
foreach ($bookings as $booking) {