Summer sale! Save 50% on access to our entire library of courses.Join here →

Articles

Showing 2 posts
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
Laravel
Inertia
Alpine.js
JavaScript
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