Hi there!
Welcome to the 163rd freek.dev newsletter!
Here are a couple of links I hope you'll enjoy as much as I did.
⭐ Skipping tests conditionally in Pest
Using the simple technique, which can be used for other things besides skipping tests, you can make your tests much more flexible.
⭐ Laravel Analytics v5 with support for GA4 has been released
We've released a new major version of our Laravel Analytics package. The most important new feature of this release is the support for GA4.
Optimising Flare
The laravel-data package is fantastic to work with, but it also adds a lot of complexity when outputting data. In this blog post, we will look at how we've improved the performance of the package and, thus, the complete Flare application.
Making the best all-in-one monitoring tool even better
Our friends at Digital With You wrote a detailed case study on how they helped us redesign @OhDearApp They cover rewriting marketing text, choosing new colours, redesigning all pages.
Make more things the same
A nice refactor from Aaron Francis
Valet 4.0 is released
Valet is one of my favourite pieces of technology: I don't notice that I'm using it, still I use it every single day.
Calculating rolling averages with Laravel Collections
Rolling averages are a great tool for smoothing out noisy data, helping you to more easily spot long-term trends. This new package adds first-class support to Laravel Collections for rolling average calculations.
Tricks for Running Commands With Laravel Process
Use Laravel's new Process facade while avoiding issues related to processing stdout vs stderr output, environment variables, and PHP security settings.
Sit Down with Freek Van der Herten
Here's a fun interview I did with Bert.
Lessons from the last 12 months
An important post by Mohamed Said.
The End of Front-End Development
Josh Comeau argues that AI won't take away any front end jobs soon.
MySQL for Developers
This is a fantastic course by Aaron Francis. I've already watched most of the videos, and I can tell you it's one of the best courses I ever saw.
Blazingly Fast Markdown Parsing in PHP using FFI and Rust
In this post, Ryan demonstrates how to use FFI and a lower-level language such as Rust to improve the performance of a critical path.
PHP wishlist: The pipe operator
This feature is high on my wishlist.
Managing files using Laravel's scoped driver
Back in september 2022, a new "scoped" filesystem driver has been introduced to Laravel. This article shows how to use it to improve file management and refactoring.
How to delay Laravel jobs and listeners within database transactions
If you have jobs and listeners being fired within database transactions, it can lead to data inconsistencies if the transaction rolls back. Learn how to properly handle them here.
Autocomplete fields with Livewire
Use browser's native autocomplete input fields and dynamically update with Livewire!
Create a Simple App Status Indicator
Here's how you can use Oh Dear to show the server status of your app right on your landing page.
Avoiding one-liners in PHP
Focus on writing code that solves real problems, is well-tested, and is easy to maintain.
Leverage Symfony VarDumper Component to Enhance your Dumps
Let's take a look how we can extend Var Dumper to dump our objects, or some vendor objects, in a more readable way.
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
Git Hooks: Check Code Quality & Unit Tests on Every Commit (submitted by Mitchell McKenna)
Creating encrypted cookie value in Laravel (submitted by Mark van Eijk)
Blockade: A Laravel package to block Users (submitted by Chris Mellor)
Sending Mails with Laravel and Microsoft Office 365 the secure way (submitted by Tim Geisendörfer)
Favicon Fetcher v2.0.0 released (submitted by Ash Allen)
Laravel Exchange Rates v7.0.0 released (submitted by Ash Allen)
Automated Refactoring With Rector (submitted by Jamison Valenta)
Quick Introduction to Warp (submitted by Bert De Swaef)
Laravel : Retrieve data from a model between two dates (submitted by Wilo Ahadi)
How to Build a Polymorphic One-to-Many Factory in Laravel (submitted by Shahryar)
Figuring out SPAs with Sanctum (submitted by Chris Fidao)
Build beautiful API integrations and SDKs with Saloon! (submitted by Sam Carré)
No-Upload, Batched Import of Data with SheetJS CE and Livewire (submitted by Kathryn Anne Tan)
PayPal Webhook Client for Laravel (submitted by Ankur)
Doing stricter checks in PHP (submitted by Geni Jaho)
Boost Your Laravel Templates with Custom Blade Directives (submitted by Ash Allen)
Old posts
Here are a couple of links from a while ago!
Using callbacks to prevent code duplication
Why You Should Start Self Hosting
A receipt printer for GitHub issues
Extreme questions to trigger new, better ideas
Need Something Sorted? Sleep on It!
Building Oh Dear’s new design: Project setup
Improve Passing Booleans in PHP
Simple event streaming in Laravel
A list of all modern PHP features
Naming constructors
Query content of S3 objects with SQL using Laravel
The latest PHP Foundation Update lists the new PHP core developers
Laravel Valet 3 Released With Multi-Version PHP Support
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
|