Pagination with Vue and Laravel
JellyBool has shared his code to help us learning about pagination with Vue and Laravel.
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
Link:
This post is submitted by our members. Submit a new post.
Tags: Tutorials Laravel 5 Laravel 5.1 Laravel 5.2 Intermediate