remove pagination for admin bookings

This commit is contained in:
Omair Saleh
2019-07-08 12:19:55 +08:00
parent 7270f79dd7
commit 9feb38421f
+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")->paginate(30);
$bookings = Booking::UserBooking($userId)->InCompleteOrders()->orderby('updated_at', "desc")->get();
// reformat to fit frontend structure
foreach ($bookings as $booking) {