InertiaJS & Laravel misc

Creating a datatable with Laravel and InertiaJS

Creating a datatable with Laravel and InertiaJS

If you check the code snippets you'll see I've added an additional method on the pagination call.

$query->paginate()->withQueryString();

The withQueryString() ensures the pagination links include whatever additional parameters we had in the original url (in our case search, field, and direction query params)

Create an account to view the code snippets of this lesson.