JellyBool has shared his code to help us learning about pagination with Vue and Laravel.

http://i.imgur.com/21aj2le.gif

Feel free to download the code at:

https://github.com/JellyBool/laravel-vue-pagination

Usage:

Notice: for the js code, just look into welcome.blade.php and the data format locates in routes.php

1.Clone the Repo

git clone https://github.com/JellyBool/laravel-vue-pagination.git

cd laravel-vue-pagination

2.Setup Database

edit your .env file and setup database for laravel

3.Seed some data

in your project root (laravel-vue-pagination/):

php artisan tinker

then

factory(App\Post::class,35)->create()

4.See the demo

run a local serve and see the demo :

php artisan serve

visit localhost:8000 and you are good to go