InertiaJS & Laravel misc

Creating a datatable with Laravel and InertiaJS

1.
Determining active routes
05:24
2.
Create a searchable list
09:05
3.
Handling regular forms
16:41
4.
Toast notifications
17:32
5.
Inline forms validation
09:15
6.
Authorization
08:45
7.
Structuring layouts
10:43
8.
Infinite scrolling with InertiaJs and Laravel
15:57
9.
Toggling likes
13:27
10.
Notifications with Laravel Echo and Pusher in InertiaJS applications (part one)
14:47
11.
Realtime Notifications with Laravel Echo and Pusher in InertiaJS applications (part two)
09:07
12.
Building a user following / unfollowing system with Laravel and InertiaJS
22:39
13.
Changing button labels on hover and InertiaJS progress indicators
05:34
14.
Building the home feed and infinite scroll component with Laravel and InertiaJS
17:52
15.
Building a form component to post new tweets with Laravel and InertiaJS
19:38
16.
Media attachments with Laravel and InertiaJS
41:46
17.
Avatar image input component with VueJS, Inertia, and Tailwind CSS
14:44
18.
Bugfixing the avatar input component
04:16
19.
New InertiaJs form helper - less boilerplate, more awesomeness
08:30
20.
InertiaJS scroll management
13:34
21.
InertiaJS submitting form arrays and error handling
11:46
22.
Create a searchable select field with InertiaJS and vue multiselect
13:10
23.
InertiaJS data evaluation in Laravel and VueJS applications
04:37
24.
Creating a datatable with Laravel and InertiaJS
10:58
25.
Customize the default Jetstream view responses in Laravel apps using the Inertia stack
03:46
26.
Fuzzy searching with Fuse.js in Laravel & InertiaJS applications
10:38

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 episode.