freek.dev newsletter #185

Hi there!

Welcome to the 185th freek.dev newsletter!

Performance monitoring is coming soon

At Spatie, we're cooking up the next big update to Flare: performance monitoring. You'll be able to quickly find out what slowing down your app. A slow route, query, job, command, ... Using performance monitoring, you'll easily find the source of the slowdown.

This feature will be free for everyone subscriped to Flare at the moment of launch. Subscribe yourself to our mailinglist to gain access to the beta and get notified when we launch.


Send me your feedback

I've been running this newsletter for quite some years now. I started it because I wanted to share the interesting blog posts and content for Laravel developers. I've never asked for feedback and just assumed that every subscriber is happy with the content.

To improve the newsletter, I would like to know what you think of the newsletter. Why did your subscribe? What kind of content would you like to see? What are the things you don't like? To help me improve the newsletter, simply reply to this one with your honest thoughts. Even the smallest feedback is most welcome.


Interesting links

With that out of the way, here are a couple of links I hope you'll enjoy as much as I did.

🚀 Laravel CSP v3 has been released, now supports presets
We just tagged & released a new major version of spatie/laravel-csp, a package to manage your Laravel app's content security policy. The development goal for version 3 was to reduce the boilerplate of configuring a policy for common services like Google Tag Manager, Fathom Analytics, Adobe Fonts…

PHP Ecosystem Deep Dive: The Code Quality Landscape
Some very cool numbers on the PHP ecosystem, gathered by Jean-François Lépin.

Sevalla – Hosting as You Imagine (sponsored link)
Sevalla streamlines your deployment journey with a trio of powerful managed solutions: app hosting, managed database hosting, and static site hosting. Leveraging the robust infrastructures of GCP and Cloudflare alongside the scalability of Kubernetes, we deliver effortless deployments without compromising on power.

API design note: Beware of adding an “Other” enum value
Beware of "Other"!

Discovering PHP's yield Keyword After 10 Years
An article explaining PHP's yield keyword and how it can be use in place of return to easily build iterators.

Real-Time Updates with Client-Side Visits in Inertia 2.0 - No Server Overload!
Learn how you can update an Inertia.js page in real-time using client-side visits—without overloading your server, even with many users online. Laravel Echo, Laravel Reverb, and a new Inertia v2 feature make it simple and efficient.

10 Efficient (and Fun) Ways to Seed Your Database
This article shares 10 efficient and fun ways to seed your database, from classic PHP arrays to importing CSVs and using AI to generate random, realistic data.

Bulletproofing Inertia: How I maximize Type Safety in Laravel Monoliths
Here's how you can use our Laravel Data package.

Build UI's that don't suck
Christmas came very early! Adam Wathan published a new free course.

Seeing Red, or Maybe Green? How Tailwind Helps Colourblind Designers
It may only be a side effect of its colour palette and class naming conventions, but as a colourblind developer, Tailwind has made it SO EASY to design with sensible colours - a superpower I've been missing my whole life


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

How to Build a Laravel Dashboard (In No Time) using Backpack (submitted by Karan Datwani)

How to Filter Profanity in Laravel with Squeaky (submitted by Ash Allen)

Squeaky - A Laravel Validation Rule for Profanity (submitted by Jon Purvis)

MetaStorm PHPStorm Plugin. Config Architecture (submitted by Dmitrii Derepko)

Laravel Zero Downtime Deployment Script (submitted by Zacharias Creutznacher)

cpx exec - Scratch File Runner (submitted by Liam Hammett)


Old posts

Here are a couple of links from a while ago!

Why we use Inertia with Laravel in 2024

Migrating from MySQL to Postgres using Laravel's query builder

Adding wire:navigate to Markdown links

Embed Livewire Components Using Wire Extender

Adding text to an image using PHP and GD

How to use GitHub Actions build matrix to deploy artifacts to multiple servers

My Reusable GitHub Actions Workflows


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:

  • All spatie products
  • Oh Dear
  • Mailcoach
  • Flare

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

Online version • Past editions • Unsubscribe