Skip to content

tuckbloor/vue3-pagination-inertia-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Pagination For Laravel when using Inertia js with vue3

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

To Add this component to your project see Test.vue and edit the properties in the for loop

<tr v-for="map in pageData.data">

    <td>
        {{map.name}}
    </td>

</tr>

About

Pagination for laravel using vue 3 with inertia

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published