updated home frontend to cope with pagination

This commit is contained in:
Jack Goh
2018-06-28 16:15:10 +08:00
parent f2784c47ed
commit 722dbacd00
2 changed files with 1 additions and 4 deletions
@@ -22,7 +22,6 @@ class BookingController extends Controller
$user = Auth::user();
$bookings = Booking::select('id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
->where('user_id', $user->id)
->get()
->paginate(10);
+1 -3
View File
@@ -373,11 +373,9 @@ export default {
.get('/api/booking/')
.then((response) => {
console.log(response)
this.bookingTable = response.data
this.bookingTable = response.data.data
// loading.close()
}).catch((error) => {
// console.log(error)
// loading.close()
// this.$router.push({
// name: 'notfound'