Hi there!
Welcome to the 169th freek.dev newsletter!
Here are a couple of links I hope you'll enjoy as much as I did.
⭐ Spatie's Black Friday Deals
Like every year, we have some Black Friday discounts at Spatie. We made fun video about it too.
Unorthodox Eloquent II
Muhammed's been working with Eloquent for over half a decade now, and it's time to share his next bag of tricks.
Leveraging CloudFlare Workers for Edge API Authentication
Discover how we're using Cloudflare Workers to perform API authentication on the edge to make our infrastructure more cost-effective.
Best Practices for Using PHP Enumerations
Here's how enums can help you build a more resilient and consistent codebase.
Preventing Duplicate Form Submissions Using Atomic Locks
Duplicate form submissions or requests can be a common issue in web applications, often leading to unintended consequences. Laravel offers a straightforward solution to prevent these duplicates by using atomic locks.
Infinite Scroll with Livewire 3 and Alpine.js
in this video, we're transforming our load more button functionality to an infinite scroll using Alpine.js and more specifically we're using x-intersect to trigger our loadMore function.
Build a Quick & Easy Instant Search UI With Alpine AJAX & Laravel
How to easily progressively enhance an instant search component with Alpine AJAX so that it works with or without JavaScript available.
The Absolute Minimum Every Software Developer Must Know About Unicode in 2023
No suprises here: UTF-8 is the most popular encoding for data in transfer and at rest.
Juggling Databases When Testing With Laravel: Tackling the Lock Wait Timeout Error
Writing tests to validate behaviour in a multi-tenancy, multi-database app can be challenging. "Lock wait timeout" errors, or transactions cleaned up in one db and not another - it can be very frustrating! Fortunately, Laravel has a way to support db transactions across multiple databases.
Ensure model events are fired in your tests when using Model Observers
We will look at a couple of common scenarios where adding a couple of lines to your tests can future-proof your application from data loss when using Model Observers.
Community links
In this section you'll find links submitted by others. Let me know if you did write or stumbled across a blog post, tutorial or video that might be interesting to appear in this section
Defragment your PHPUnit tests (submitted by Ben Holmen)
Querying Laravel Eloquent's Many to Many relationships (submitted by Chris Rhymes)
Use Bun with vite.js and deploy on Forge (submitted by Eser DENIZ)
PHP 8.4: new features and release date (submitted by Benjamin Crozat)
🌵 XML Wrangler - Easily Read & Write XML in PHP (submitted by Sam Carré)
Favicon Fetcher v3.1.0 released! (submitted by Ash Allen)
Events in Laravel (submitted by Mark van Eijk)
How to find your php.ini file (submitted by Ryan Chandler)
♻️ Maximizing the PHP compatibility for WordPress 6.4 and the plugin directory (submitted by Leonardo Losoviz)
Short URL v7.8.0 released! (submitted by Ash Allen)
My process for writing Laravel packages (submitted by David Carr)
Composer Scripts (submitted by David Carr)
Laravel Markable (submitted by Enrico De Lazzari)
Optimisation with Offset and Limit, for load more & infinite scrolling in Livewire3 (submitted by Bert De Swaef)
Liwewire wire:confirm | How to | Tutorial | Quick Win Wednesday #QWW (submitted by Bert De Swaef)
How to Scan any Website for schema.org Structured Data Objects (submitted by Christian Olear)
"PHP Dates are Broken!! 😭" (submitted by Andrew Cairns)
Old posts
Here are a couple of links from a while ago!
Laravel and PHP developers to follow on Mastodon
Spatie WWSD 2022
Queue workers for serverless Laravel applications
The Art of Fermenting Great Ideas
Vanilla Rails is plenty
Using Generators (and LazyCollections) for Paginating APIs
Local or session storage?
A Composer tool to show unused Composer dependencies
I'm out of a job
Introducing PHP 8.2: all new features and changes
What's new in PHP 8.2?
Make changes to the database during a Livewire Pest chain
Laravel Mailcoach v6 has been released with a new UI and lots of improvements
Introducing the Mailcoach SDKs for PHP and Laravel
Generics via Attributes in PHP
Did you like this newsletter?
I take a lot of time curating the right links for you. You could do me a favor by either spreading the word and letting others know about my newsletter.
Alternatively, you could consider picking up one of the paid products my team and I have worked on:
If you have any questions, remarks or thoughts about this newsletter, simply hit reply!
Thank you so much for reading!
Freek
You are receiving this newsletter because you subscribed at freek.dev
Unsubscribe from this newsletter
This mail was sent using Mailcoach
|