Articles

Showing 6 posts
February 6th, 2025

Textarea Mentions with Alpine.js and Tribute

Adding mention triggers to textareas is easy with Tribute. In this article, we'll set up the ability to type a trigger (like @) and display/search a list of users for insertion.

Author
Alex Garrett-Smith
Alpine.js
Laravel
JavaScript
November 18th, 2024

Deferred props in Inertia

The new deferred props feature of Inertia v2 eliminates the need to write our own boilerplate code to delay loading data. Let's see how it works.

Author
Alex Garrett-Smith
Inertia
JavaScript
November 14th, 2024

Polling in Inertia

The usePoll helper has landed in Inertia, making it really easy to refresh prop data at a given interval. Here's how it works, and some tips.

Author
Alex Garrett-Smith
Inertia
JavaScript
November 13th, 2024

Prefetching in Inertia

Want to improve the perceived performance of your applications? Prefetching is a great first step. Here's how it works in Inertia v2.

Author
Alex Garrett-Smith
Inertia
JavaScript
July 9th, 2024

Sending a CSRF token when making fetch requests with Laravel

If you're making HTTP requests with JavaScript's Fetch API to web routes in Laravel, you'll need to pass a CSRF token rather than just exclude those routes from CSRF protection.

Author
Alex Garrett-Smith
Inertia
JavaScript
Laravel
Alpine.js
December 31st, 2023

Easily Copy Text to the Clipboard with Alpine.js

If you need to copy text to the clipboard with JavaScript, Alpine.js makes this super easy with the help of a simple plugin.

Author
Alex Garrett-Smith
Alpine.js
JavaScript

Tags