tb-vue3-laravel-lnertia-pagination

Pagination For Laravel When Using Inertia With Vue3

Usage no npm install needed!

<script type="module">
  import tbVue3LaravelLnertiaPagination from 'https://cdn.skypack.dev/tb-vue3-laravel-lnertia-pagination';
</script>

README

Simple Pagination For Laravel when using Inertia js with vue3 pagination can be edited for large or small

screenshot

multiple tables can be used on the same page

screenshot

you will need to add the following to your routes

Route::match(['GET','POST'],'/test', 'TestController@test')->name('test');

Test Controller will need editing

The test uses a table called test in the TestController.php

$data = \DB::table('test')->paginate(5); edit this for your table

see the git repository in Test.vue to view how to add to your component