All Projects → gilbitron → Laravel Vue Pagination

gilbitron / Laravel Vue Pagination

Licence: mit
A Vue.js pagination component for Laravel paginators that works with Bootstrap

Projects that are alternatives of or similar to Laravel Vue Pagination

Laravel Bootstrap 4 Forms
Bootstrap 4 forms for Laravel 5/6/7/8
Stars: ✭ 181 (-66.54%)
Mutual labels:  laravel, bootstrap
Bootstrap Form
Bootstrap 3 form builder for Laravel
Stars: ✭ 225 (-58.41%)
Mutual labels:  laravel, bootstrap
Laravel Bootstrap Components
Bootstrap components as Laravel components
Stars: ✭ 190 (-64.88%)
Mutual labels:  laravel, bootstrap
Lqycms
基于laravel框架的企业级开源cms管理系统,开源php商城源码,B2C微商城系统,企业建站cms。
Stars: ✭ 142 (-73.75%)
Mutual labels:  laravel, bootstrap
Jetstrap
A Laravel 8 package to easily switch TailwindCSS resources generated by Laravel Jetstream and Breeze to Bootstrap 4.
Stars: ✭ 320 (-40.85%)
Mutual labels:  laravel, bootstrap
Adminlte Laravel
A Laravel 5 package that switchs default Laravel scaffolding/boilerplate to AdminLTE template and Pratt Landing Page with Bootstrap 3.0
Stars: ✭ 1,814 (+235.3%)
Mutual labels:  laravel, bootstrap
Cms
Multilingual PHP CMS built with Laravel and bootstrap
Stars: ✭ 2,342 (+332.9%)
Mutual labels:  laravel, bootstrap
Api Restful Con Laravel Guia Definitiva
Repositorio para el código base del curso "API RESTful con Laravel - Guía Definitiva"
Stars: ✭ 95 (-82.44%)
Mutual labels:  laravel, pagination
Laravel Paginateroute
Laravel router extension to easily use Laravel's paginator without the query string
Stars: ✭ 306 (-43.44%)
Mutual labels:  laravel, pagination
Laravel Form Components
A set of Blade components to rapidly build forms with Tailwind CSS (v1.0 and v2.0) and Bootstrap 4. Supports validation, model binding, default values, translations, Laravel Livewire, includes default vendor styling and fully customizable!
Stars: ✭ 295 (-45.47%)
Mutual labels:  laravel, bootstrap
Laravel Coreui Vue
Laravel 5.6 with CoreUI (VueJS Full Starter Template) >>> Deprecated, please go to https://coreui.io/laravel/
Stars: ✭ 132 (-75.6%)
Mutual labels:  laravel, bootstrap
Vue Datasource
A vue.js component to create dynamic tables
Stars: ✭ 420 (-22.37%)
Mutual labels:  laravel, pagination
Laravel Alert
A Bootstrap alert helper for Laravel
Stars: ✭ 110 (-79.67%)
Mutual labels:  laravel, bootstrap
Ignition Go
Bootstrap4 /Codeigniter 3 Modular (HMVC) App Building Framework - to build enterprise class web applications... Versions: CodeIgniter 3.1.9 AdminLTE 3.4 Bootstrap 4.5.0
Stars: ✭ 166 (-69.32%)
Mutual labels:  laravel, bootstrap
Ecommerce Laravel Bootstrap
Responsive, Multi-Vendor, MultiLanguage Online Store Platform (shopping cart solution)
Stars: ✭ 99 (-81.7%)
Mutual labels:  laravel, bootstrap
Library Management System
📚 An automated library management system developed in Laravel 4.2 PHP MVC Framework
Stars: ✭ 189 (-65.06%)
Mutual labels:  laravel, bootstrap
Wl Bootstrap
Integrating Laravel into WordPress
Stars: ✭ 54 (-90.02%)
Mutual labels:  laravel, bootstrap
Laralack
A Slack clone written in PHP & Laravel framework
Stars: ✭ 82 (-84.84%)
Mutual labels:  laravel, bootstrap
Ekko
Framework agnostic PHP package for marking navigation items active.
Stars: ✭ 275 (-49.17%)
Mutual labels:  laravel, bootstrap
Polr
🚡 A modern, powerful, and robust URL shortener
Stars: ✭ 4,147 (+666.54%)
Mutual labels:  laravel, bootstrap

Build Status npm Downloads

Want your logo here? Sponsor me on GitHub

Laravel Vue Pagination

A Vue.js pagination component for Laravel paginators that works with Bootstrap.

Requirements

Install

npm install laravel-vue-pagination
// or
yarn add laravel-vue-pagination

Demo

See https://laravel-vue-pagination.now.sh

Usage

Register the component:

Vue.component('pagination', require('laravel-vue-pagination'));

Use the component:

<ul>
    <li v-for="post in laravelData.data" :key="post.id">{{ post.title }}</li>
</ul>

<pagination :data="laravelData" @pagination-change-page="getResults"></pagination>
export default {

	data() {
		return {
			// Our data object that holds the Laravel paginator data
			laravelData: {},
		}
	},

	mounted() {
		// Fetch initial results
		this.getResults();
	},

	methods: {
		// Our method to GET results from a Laravel endpoint
		getResults(page = 1) {
			axios.get('example/results?page=' + page)
				.then(response => {
					this.laravelData = response.data;
				});
		}
	}

}

Customizing Prev/Next Buttons

Prev/Next buttons can be customized using the prev-nav and next-nav slots:

<pagination :data="laravelData">
	<span slot="prev-nav">&lt; Previous</span>
	<span slot="next-nav">Next &gt;</span>
</pagination>

API

Props

Name Type Description
data Object An object containing the structure of a Laravel paginator response or a Laravel API Resource response.
limit Number (optional) Limit of pages to be rendered. 0 shows all pages (default). -1 will hide numeric pages and leave only arrow navigation. Any positive integer (e.g. 2) will define how many pages should be shown on either side of the current page when only a range of pages are shown.
show-disabled Boolean (optional) Show disabled prev/next buttons instead of hiding them. false hides disabled buttons (default). true shows disables buttons.
size String (optional) One of small, default or large
align String (optional) One of left (default), center or right

Events

Name Description
pagination-change-page Triggered when a user changes page. Passes the new page index as a parameter.

Development

To work on the library locally, run the following command:

npm run serve

To run the tests:

npm run test

Show your Support

To show your support for my work on this project:

Credits

Laravel Vue Pagination was created by Gilbert Pellegrom from Dev7studios. Released under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].